diff options
author | Damien Miller <djm@mindrot.org> | 2019-01-20 09:58:45 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2019-01-20 09:58:45 +1100 |
commit | 08f66d9f17e12c1140d1f1cf5c4dce67e915d3cc (patch) | |
tree | 70cb70df407096b8ff095d683b4f202f5e18653e /auth2.c | |
parent | c327813ea1d740e3e367109c17873815aba1328e (diff) |
remove vestiges of old packet API from loginrec.c
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, 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); |