Blame openssh-5.9p1-null-xcrypt.patch
|
Petr Lautrbach |
5382cc |
Index: auth-passwd.c
|
|
Petr Lautrbach |
5382cc |
===================================================================
|
|
Petr Lautrbach |
5382cc |
RCS file: /cvs/openssh/auth-passwd.c,v
|
|
Petr Lautrbach |
5382cc |
retrieving revision 1.90
|
|
Petr Lautrbach |
5382cc |
retrieving revision 1.91
|
|
Petr Lautrbach |
5382cc |
diff -u -r1.90 -r1.91
|
|
Petr Lautrbach |
5382cc |
--- auth-passwd.c 8 Mar 2009 00:40:28 -0000 1.90
|
|
Petr Lautrbach |
5382cc |
+++ auth-passwd.c 25 Apr 2012 23:51:28 -0000 1.91
|
|
Petr Lautrbach |
5382cc |
@@ -209,6 +209,7 @@
|
|
Petr Lautrbach |
5382cc |
* Authentication is accepted if the encrypted passwords
|
|
Petr Lautrbach |
5382cc |
* are identical.
|
|
Petr Lautrbach |
5382cc |
*/
|
|
Petr Lautrbach |
5382cc |
- return (strcmp(encrypted_password, pw_password) == 0);
|
|
Petr Lautrbach |
5382cc |
+ return encrypted_password != NULL &&
|
|
Petr Lautrbach |
5382cc |
+ strcmp(encrypted_password, pw_password) == 0;
|
|
Petr Lautrbach |
5382cc |
}
|
|
Petr Lautrbach |
5382cc |
#endif
|