summaryrefslogtreecommitdiffstats
path: root/auth-pam.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2004-03-04 20:03:54 +1100
committerDarren Tucker <dtucker@zip.com.au>2004-03-04 20:03:54 +1100
commitb9b6021667953fcb578215c97e523d6cea281ea9 (patch)
tree5b40e18a68b768f5149622957f0c182046aee7d0 /auth-pam.c
parent4b385d4bc0ac6e27b5ba5ce941d1603417963603 (diff)
- (dtucker) [auth-pam.c] Reset signal status when starting pam auth thread,
prevent hanging during PAM keyboard-interactive authentications. ok djm@
Diffstat (limited to 'auth-pam.c')
-rw-r--r--auth-pam.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/auth-pam.c b/auth-pam.c
index 53221a02..ea361f17 100644
--- a/auth-pam.c
+++ b/auth-pam.c
@@ -31,7 +31,7 @@
/* Based on $FreeBSD: src/crypto/openssh/auth2-pam-freebsd.c,v 1.11 2003/03/31 13:48:18 des Exp $ */
#include "includes.h"
-RCSID("$Id: auth-pam.c,v 1.96 2004/03/04 08:54:10 dtucker Exp $");
+RCSID("$Id: auth-pam.c,v 1.97 2004/03/04 09:03:54 dtucker Exp $");
#ifdef USE_PAM
#if defined(HAVE_SECURITY_PAM_APPL_H)
@@ -117,6 +117,7 @@ pthread_create(sp_pthread_t *thread, const void *attr __unused,
{
pid_t pid;
+ sshpam_thread_status = -1;
switch ((pid = fork())) {
case -1:
error("fork(): %s", strerror(errno));