summaryrefslogtreecommitdiff
path: root/auth1.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth1.c')
-rw-r--r--auth1.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/auth1.c b/auth1.c
index 2ba411243..c273f2fb6 100644
--- a/auth1.c
+++ b/auth1.c
@@ -10,7 +10,7 @@
10 */ 10 */
11 11
12#include "includes.h" 12#include "includes.h"
13RCSID("$OpenBSD: auth1.c,v 1.46 2003/01/23 00:03:00 djm Exp $"); 13RCSID("$OpenBSD: auth1.c,v 1.47 2003/02/06 21:22:42 markus Exp $");
14 14
15#include "xmalloc.h" 15#include "xmalloc.h"
16#include "rsa.h" 16#include "rsa.h"
@@ -328,8 +328,7 @@ do_authloop(Authctxt *authctxt)
328 } 328 }
329#else 329#else
330 /* Special handling for root */ 330 /* Special handling for root */
331 if (!use_privsep && 331 if (authenticated && authctxt->pw->pw_uid == 0 &&
332 authenticated && authctxt->pw->pw_uid == 0 &&
333 !auth_root_allowed(get_authname(type))) 332 !auth_root_allowed(get_authname(type)))
334 authenticated = 0; 333 authenticated = 0;
335#endif 334#endif