commit | 7584cb1ac4daafbfb3dec592dd7ef48b81d20eea | [log] [tgz] |
---|---|---|
author | Damien Miller <djm@mindrot.org> | Thu Apr 26 09:51:26 2012 +1000 |
committer | Damien Miller <djm@mindrot.org> | Thu Apr 26 09:51:26 2012 +1000 |
tree | b758ad859d530f5b4e22d3c7dce55465d8c6b090 | |
parent | ba77e1f67311fc76fe7ce460f7f03b6528383cbc [diff] [blame] |
- (djm) [auth-passwd.c] Handle crypt() returning NULL; from Paul Wouters via Niels
diff --git a/auth-passwd.c b/auth-passwd.c index b1c6ce0..68bbd18 100644 --- a/auth-passwd.c +++ b/auth-passwd.c
@@ -209,6 +209,7 @@ * Authentication is accepted if the encrypted passwords * are identical. */ - return (strcmp(encrypted_password, pw_password) == 0); + return encrypted_password != NULL && + strcmp(encrypted_password, pw_password) == 0; } #endif