diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | auth-passwd.c | 3 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,7 @@ | |||
1 | 20120426 | ||
2 | - (djm) [auth-passwd.c] Handle crypt() returning NULL; from Paul Wouters | ||
3 | via Niels | ||
4 | |||
1 | 20120423 | 5 | 20120423 |
2 | - OpenBSD CVS Sync | 6 | - OpenBSD CVS Sync |
3 | - djm@cvs.openbsd.org 2012/04/23 08:18:17 | 7 | - djm@cvs.openbsd.org 2012/04/23 08:18:17 |
diff --git a/auth-passwd.c b/auth-passwd.c index b1c6ce092..68bbd18dd 100644 --- a/auth-passwd.c +++ b/auth-passwd.c | |||
@@ -209,6 +209,7 @@ sys_auth_passwd(Authctxt *authctxt, const char *password) | |||
209 | * Authentication is accepted if the encrypted passwords | 209 | * Authentication is accepted if the encrypted passwords |
210 | * are identical. | 210 | * are identical. |
211 | */ | 211 | */ |
212 | return (strcmp(encrypted_password, pw_password) == 0); | 212 | return encrypted_password != NULL && |
213 | strcmp(encrypted_password, pw_password) == 0; | ||
213 | } | 214 | } |
214 | #endif | 215 | #endif |