summaryrefslogtreecommitdiff
path: root/auth2.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth2.c')
-rw-r--r--auth2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/auth2.c b/auth2.c
index b74920578..3cd946877 100644
--- a/auth2.c
+++ b/auth2.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: auth2.c,v 1.40 2001/02/10 12:52:02 markus Exp $"); 26RCSID("$OpenBSD: auth2.c,v 1.41 2001/02/12 16:16:23 markus Exp $");
27 27
28#include <openssl/evp.h> 28#include <openssl/evp.h>
29 29
@@ -230,7 +230,8 @@ input_userauth_request(int type, int plen, void *ctxt)
230 authctxt->user); 230 authctxt->user);
231 231
232 /* Special handling for root */ 232 /* Special handling for root */
233 if (authenticated && authctxt->pw->pw_uid == 0 && !auth_root_allowed()) 233 if (authenticated && authctxt->pw->pw_uid == 0 &&
234 !auth_root_allowed(method))
234 authenticated = 0; 235 authenticated = 0;
235 236
236#ifdef USE_PAM 237#ifdef USE_PAM