diff options
author | Colin Watson <cjwatson@debian.org> | 2018-10-19 21:29:01 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2018-10-20 22:54:15 +0100 |
commit | d80ebbf028196b2478beebf5a290b97f35e1eed9 (patch) | |
tree | 6666a5484923a26738675ff27a6186cfe15d4cad /openbsd-compat/port-uw.c | |
parent | 4f5bbf3f11efeec65bbd56464b20a19bd250e5cc (diff) | |
parent | 1d2a55436d4b556269f42ad5f7e16608b5a8ed74 (diff) |
New upstream release (7.9p1)
Diffstat (limited to 'openbsd-compat/port-uw.c')
-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); |