summaryrefslogtreecommitdiff
path: root/auth-passwd.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2012-09-06 23:20:10 +0100
committerColin Watson <cjwatson@debian.org>2012-09-06 23:20:10 +0100
commitc6a2c0334e45419875687d250aed9bea78480f2e (patch)
treed8f01bef9f3921fa1ca7592a19474be9c8349f76 /auth-passwd.c
parentdd5ed53e20d218607260916a6b04d1c8c5b3d88f (diff)
parent8b13b5bdc4f19bd52ee673104d66b71c21153b96 (diff)
merge 6.1p1
Diffstat (limited to 'auth-passwd.c')
-rw-r--r--auth-passwd.c3
1 files changed, 2 insertions, 1 deletions
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