diff options
author | des <des@FreeBSD.org> | 2002-04-22 06:25:13 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2002-04-22 06:25:13 +0000 |
commit | 1a6399fa3be477587355282bb93877236e8ea199 (patch) | |
tree | 9dd040ca0a3ee99e6ca45eb935c7319f7470812a /crypto | |
parent | 9570c296c3ac817ab93aa035b91fc28606b26c70 (diff) | |
download | FreeBSD-src-1a6399fa3be477587355282bb93877236e8ea199.zip FreeBSD-src-1a6399fa3be477587355282bb93877236e8ea199.tar.gz |
Fix warnings + wait for child so it doesn't go zombie (perforce change 10122)
Diffstat (limited to 'crypto')
-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); } |