diff options
-rw-r--r-- | crypto/openssh/auth2-pam.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/crypto/openssh/auth2-pam.c b/crypto/openssh/auth2-pam.c index 7a23856..e6a67f2 100644 --- a/crypto/openssh/auth2-pam.c +++ b/crypto/openssh/auth2-pam.c @@ -41,6 +41,7 @@ RCSID("$FreeBSD$"); #include <security/pam_appl.h> #include "auth.h" +#include "log.h" #include "xmalloc.h" struct pam_ctxt { @@ -128,8 +129,6 @@ pam_child_conv(int n, void *data) { struct pam_ctxt *ctxt; - char *line; - size_t len; int i; ctxt = data; @@ -176,7 +175,6 @@ pam_child(struct pam_ctxt *ctxt) { struct pam_conv pam_conv = { pam_child_conv, ctxt }; pam_handle_t *pamh; - char *msg; int pam_err; pam_err = pam_start("sshd", ctxt->pam_user, &pam_conv, &pamh); @@ -315,10 +313,11 @@ static void pam_free_ctx(void *ctxtp) { struct pam_ctxt *ctxt = ctxtp; - int i; + int status; close(ctxt->pam_sock); kill(ctxt->pam_pid, SIGHUP); + waitpid(ctxt->pam_pid, &status, 0); xfree(ctxt->pam_user); xfree(ctxt); } |