From 13e1627c27c2bad74a411b2929fe5cb8efd7febe Mon Sep 17 00:00:00 2001 From: mouring Date: Mon, 6 May 2002 23:01:00 +0000 Subject: When options.permit_empty_passwd == 0 ensure you are checking pw->passwd not password. --- usr.bin/ssh/auth-passwd.c | 4 ++-- 1 file 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) { -- cgit v1.2.3