Displaying 1 result from an estimated 1 matches for "sshpam_thread_status".
2005 Jul 14
1
OpenSSH PAM "thread" buglet
...ragonflybsd/src/crypto/openssh-4/auth-pam.c,v
retrieving revision 1.1
diff -u -r1.1 auth-pam.c
--- auth-pam.c 14 Jul 2005 13:10:21 -0000 1.1
+++ auth-pam.c 14 Jul 2005 13:25:58 -0000
@@ -150,6 +150,7 @@
void *(*thread_start)(void *), void *arg)
{
pid_t pid;
+ struct pam_ctxt *ctx = arg;
sshpam_thread_status = -1;
switch ((pid = fork())) {
@@ -157,10 +158,14 @@
error("fork(): %s", strerror(errno));
return (-1);
case 0:
+ close(ctx->pam_psock);
+ ctx->pam_psock = -1;
thread_start(arg);
_exit(1);
default:
*thread = pid;
+ close(ctx->pam_csock);
+ ctx->pam_cs...