diff options
Diffstat (limited to 'auth2.c')
-rw-r--r-- | auth2.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -401,7 +401,10 @@ userauth_finish(struct ssh *ssh, int authenticated, const char *method, | |||
401 | fatal("%s: buffer error: %s", | 401 | fatal("%s: buffer error: %s", |
402 | __func__, ssh_err(r)); | 402 | __func__, ssh_err(r)); |
403 | userauth_send_banner(ssh, sshbuf_ptr(loginmsg)); | 403 | userauth_send_banner(ssh, sshbuf_ptr(loginmsg)); |
404 | packet_write_wait(); | 404 | if ((r = ssh_packet_write_wait(ssh)) != 0) { |
405 | sshpkt_fatal(ssh, r, | ||
406 | "%s: send PAM banner", __func__); | ||
407 | } | ||
405 | } | 408 | } |
406 | fatal("Access denied for user %s by PAM account " | 409 | fatal("Access denied for user %s by PAM account " |
407 | "configuration", authctxt->user); | 410 | "configuration", authctxt->user); |