summaryrefslogtreecommitdiff
path: root/auth1.c
diff options
context:
space:
mode:
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
/*