summaryrefslogtreecommitdiff
path: root/auth1.c
diff options
context:
space:
mode:
authormouring <mouring>2002-03-22 01:24:38 +0000
committermouring <mouring>2002-03-22 01:24:38 +0000
commite4a037c7e72cb54e4cdd5505cbaa177ab43b87ba (patch)
tree3b0882ee30e4edef2765359a987c3bc6f75430a2 /auth1.c
parent7fadb40f2f98df22a5c4574207d5feac4bc26189 (diff)
downloadopenssh-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/auth1.c b/auth1.c
index c2d99895..013c7418 100644
--- a/auth1.c
+++ b/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"
@@ -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 {