summaryrefslogtreecommitdiff
path: root/auth1.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth1.c')
-rw-r--r--auth1.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/auth1.c b/auth1.c
index c2a8936ae..1f6fcb29b 100644
--- a/auth1.c
+++ b/auth1.c
@@ -306,7 +306,8 @@ do_authloop(Authctxt *authctxt)
306 authenticated = 0; 306 authenticated = 0;
307#endif 307#endif
308#ifdef USE_PAM 308#ifdef USE_PAM
309 if (authenticated && !do_pam_account(pw->pw_name, client_user)) 309 if (!use_privsep && authenticated &&
310 !do_pam_account(pw->pw_name, client_user))
310 authenticated = 0; 311 authenticated = 0;
311#endif 312#endif
312 313
@@ -381,7 +382,7 @@ do_authentication(void)
381 use_privsep ? " [net]" : ""); 382 use_privsep ? " [net]" : "");
382 383
383#ifdef USE_PAM 384#ifdef USE_PAM
384 start_pam(authctxt->pw == NULL ? "NOUSER" : user); 385 PRIVSEP(start_pam(authctxt->pw == NULL ? "NOUSER" : user));
385#endif 386#endif
386 387
387 /* 388 /*