diff options
author | 2002-03-17 20:25:56 +0000 | |
---|---|---|
committer | 2002-03-17 20:25:56 +0000 | |
commit | 7d9f1630bf2ef7ed872c8c9c9cae8ba11bf96ea4 (patch) | |
tree | c64856572380d19270532da752165aa73e857a0b /usr.bin/ssh/auth1.c | |
parent | Clean up building of debug_map. mips and non-mips can more (diff) | |
download | wireguard-openbsd-7d9f1630bf2ef7ed872c8c9c9cae8ba11bf96ea4.tar.xz wireguard-openbsd-7d9f1630bf2ef7ed872c8c9c9cae8ba11bf96ea4.zip |
getpwnamallow returns struct passwd * only if user valid; okay markus@
Diffstat (limited to 'usr.bin/ssh/auth1.c')
-rw-r--r-- | usr.bin/ssh/auth1.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/auth1.c b/usr.bin/ssh/auth1.c index 7460b6f5716..238e7387a99 100644 --- a/usr.bin/ssh/auth1.c +++ b/usr.bin/ssh/auth1.c @@ -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" @@ -345,8 +345,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 { |