summaryrefslogtreecommitdiffstats
path: root/auth2.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2019-01-20 09:58:45 +1100
committerDamien Miller <djm@mindrot.org>2019-01-20 09:58:45 +1100
commit08f66d9f17e12c1140d1f1cf5c4dce67e915d3cc (patch)
tree70cb70df407096b8ff095d683b4f202f5e18653e /auth2.c
parentc327813ea1d740e3e367109c17873815aba1328e (diff)
remove vestiges of old packet API from loginrec.c
Diffstat (limited to 'auth2.c')
-rw-r--r--auth2.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/auth2.c b/auth2.c
index 1f023e8b..2e996fa5 100644
--- a/auth2.c
+++ b/auth2.c
@@ -401,7 +401,10 @@ userauth_finish(struct ssh *ssh, int authenticated, const char *method,
fatal("%s: buffer error: %s",
__func__, ssh_err(r));
userauth_send_banner(ssh, sshbuf_ptr(loginmsg));
- packet_write_wait();
+ if ((r = ssh_packet_write_wait(ssh)) != 0) {
+ sshpkt_fatal(ssh, r,
+ "%s: send PAM banner", __func__);
+ }
}
fatal("Access denied for user %s by PAM account "
"configuration", authctxt->user);