diff options
author | mouring <mouring@cvs.openbsd.org> | 2002-05-06 23:01:00 +0000 |
---|---|---|
committer | mouring <mouring@cvs.openbsd.org> | 2002-05-06 23:01:00 +0000 |
commit | 13e1627c27c2bad74a411b2929fe5cb8efd7febe (patch) | |
tree | a1b91b8c244b65d7a25fad91dde46dcd345d6c88 /usr.bin | |
parent | 7ec89d9d69c1398723389aad39bf48c3a0d21db8 (diff) |
When options.permit_empty_passwd == 0 ensure you are checking pw->passwd not
password.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/auth-passwd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/auth-passwd.c b/usr.bin/ssh/auth-passwd.c index 915991f435f..10e8829d7b1 100644 --- a/usr.bin/ssh/auth-passwd.c +++ b/usr.bin/ssh/auth-passwd.c @@ -36,7 +36,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: auth-passwd.c,v 1.24 2002/03/04 12:43:06 markus Exp $"); +RCSID("$OpenBSD: auth-passwd.c,v 1.25 2002/05/06 23:00:59 mouring Exp $"); #include "packet.h" #include "log.h" @@ -61,7 +61,7 @@ auth_password(Authctxt *authctxt, const char *password) return 0; if (pw->pw_uid == 0 && options.permit_root_login != PERMIT_YES) return 0; - if (*password == '\0' && options.permit_empty_passwd == 0) + if (*pw->pw_passwd == '\0' && options.permit_empty_passwd == 0) return 0; #ifdef KRB5 if (options.kerberos_authentication == 1) { |