diff options
Diffstat (limited to 'openbsd-compat')
-rw-r--r-- | openbsd-compat/port-uw.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsd-compat/port-uw.c b/openbsd-compat/port-uw.c index 9edb1b481..132213131 100644 --- a/openbsd-compat/port-uw.c +++ b/openbsd-compat/port-uw.c | |||
@@ -60,6 +60,9 @@ sys_auth_passwd(struct ssh *ssh, const char *password) | |||
60 | /* Just use the supplied fake password if authctxt is invalid */ | 60 | /* Just use the supplied fake password if authctxt is invalid */ |
61 | char *pw_password = authctxt->valid ? shadow_pw(pw) : pw->pw_passwd; | 61 | char *pw_password = authctxt->valid ? shadow_pw(pw) : pw->pw_passwd; |
62 | 62 | ||
63 | if (pw_password == NULL) | ||
64 | return 0; | ||
65 | |||
63 | /* Check for users with no password. */ | 66 | /* Check for users with no password. */ |
64 | if (strcmp(pw_password, "") == 0 && strcmp(password, "") == 0) | 67 | if (strcmp(pw_password, "") == 0 && strcmp(password, "") == 0) |
65 | return (1); | 68 | return (1); |