summaryrefslogtreecommitdiff
path: root/auth1.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2002-02-14 20:39:49 +1100
committerDamien Miller <djm@mindrot.org>2002-02-14 20:39:49 +1100
commit72476d4b24afb0a03e99c75427cfbd63d243bc12 (patch)
tree350524a265d46942b278f140641cada8fecb11b6 /auth1.c
parentd054b07cc9d01a8891a48877e236f5aad552f9da (diff)
- (djm) Bug #114 - not starting PAM for SSH protocol 1 invalid users
Diffstat (limited to 'auth1.c')
-rw-r--r--auth1.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/auth1.c b/auth1.c
index cba3f7d6..c2d99895 100644
--- a/auth1.c
+++ b/auth1.c
@@ -395,8 +395,7 @@ do_authentication(void)
setproctitle("%s", pw ? user : "unknown");
#ifdef USE_PAM
- if (pw)
- start_pam(user);
+ start_pam(pw == NULL ? "NOUSER" : user);
#endif
/*