- (djm) [auth-passwd.c] Handle crypt() returning NULL; from Paul Wouters
via Niels
This commit is contained in:
parent
ba77e1f673
commit
7584cb1ac4
|
@ -1,3 +1,7 @@
|
||||||
|
20120426
|
||||||
|
- (djm) [auth-passwd.c] Handle crypt() returning NULL; from Paul Wouters
|
||||||
|
via Niels
|
||||||
|
|
||||||
20120423
|
20120423
|
||||||
- OpenBSD CVS Sync
|
- OpenBSD CVS Sync
|
||||||
- djm@cvs.openbsd.org 2012/04/23 08:18:17
|
- djm@cvs.openbsd.org 2012/04/23 08:18:17
|
||||||
|
|
|
@ -209,6 +209,7 @@ sys_auth_passwd(Authctxt *authctxt, const char *password)
|
||||||
* Authentication is accepted if the encrypted passwords
|
* Authentication is accepted if the encrypted passwords
|
||||||
* are identical.
|
* are identical.
|
||||||
*/
|
*/
|
||||||
return (strcmp(encrypted_password, pw_password) == 0);
|
return encrypted_password != NULL &&
|
||||||
|
strcmp(encrypted_password, pw_password) == 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue