summaryrefslogtreecommitdiff
path: root/auth-passwd.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2012-09-07 00:20:47 +0100
committerColin Watson <cjwatson@debian.org>2012-09-07 00:20:47 +0100
commiteab78da6a54225de06271d9c8da650f04a55ed88 (patch)
treeaa258ca77515939f6d89317ff67fbcb0bca08b24 /auth-passwd.c
parenta26f5de49df59322fde07f7be91b3e3969c9c238 (diff)
parentc6a2c0334e45419875687d250aed9bea78480f2e (diff)
* New upstream release (http://www.openssh.com/txt/release-6.1).
- Enable pre-auth sandboxing by default for new installs. - Allow "PermitOpen none" to refuse all port-forwarding requests (closes: #543683).
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