diff options
author | mouring <mouring> | 2002-03-22 01:24:38 +0000 |
---|---|---|
committer | mouring <mouring> | 2002-03-22 01:24:38 +0000 |
commit | e4a037c7e72cb54e4cdd5505cbaa177ab43b87ba (patch) | |
tree | 3b0882ee30e4edef2765359a987c3bc6f75430a2 /auth1.c | |
parent | 7fadb40f2f98df22a5c4574207d5feac4bc26189 (diff) | |
download | openssh-e4a037c7e72cb54e4cdd5505cbaa177ab43b87ba.tar.gz |
- provos@cvs.openbsd.org 2002/03/17 20:25:56
[auth.c auth.h auth1.c auth2.c]
getpwnamallow returns struct passwd * only if user valid; okay markus@
Diffstat (limited to 'auth1.c')
-rw-r--r-- | auth1.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -10,7 +10,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: auth1.c,v 1.35 2002/02/03 17:53:25 markus Exp $"); +RCSID("$OpenBSD: auth1.c,v 1.36 2002/03/17 20:25:56 provos Exp $"); #include "xmalloc.h" #include "rsa.h" @@ -382,8 +382,8 @@ do_authentication(void) authctxt->style = style; /* Verify that the user is a valid user. */ - pw = getpwnam(user); - if (pw && allowed_user(pw)) { + pw = getpwnamallow(user); + if (pw) { authctxt->valid = 1; pw = pwcopy(pw); } else { |