forked from rpms/openssh
handle crypt() returning NULL (#815993)
This commit is contained in:
parent
0c438f5bc5
commit
5382ccbe9b
17
openssh-5.9p1-null-xcrypt.patch
Normal file
17
openssh-5.9p1-null-xcrypt.patch
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
Index: auth-passwd.c
|
||||||
|
===================================================================
|
||||||
|
RCS file: /cvs/openssh/auth-passwd.c,v
|
||||||
|
retrieving revision 1.90
|
||||||
|
retrieving revision 1.91
|
||||||
|
diff -u -r1.90 -r1.91
|
||||||
|
--- auth-passwd.c 8 Mar 2009 00:40:28 -0000 1.90
|
||||||
|
+++ auth-passwd.c 25 Apr 2012 23:51:28 -0000 1.91
|
||||||
|
@@ -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
|
@ -208,6 +208,9 @@ Patch711: openssh-5.9p1-log-usepam-no.patch
|
|||||||
Patch712: openssh-5.9p1-ctr-evp-fast.patch
|
Patch712: openssh-5.9p1-ctr-evp-fast.patch
|
||||||
# add cavs test binary for the aes-ctr
|
# add cavs test binary for the aes-ctr
|
||||||
Patch713: openssh-5.9p1-ctr-cavstest.patch
|
Patch713: openssh-5.9p1-ctr-cavstest.patch
|
||||||
|
#https://bugzilla.redhat.com/show_bug.cgi?id=815993
|
||||||
|
Patch714: openssh-5.9p1-null-xcrypt.patch
|
||||||
|
|
||||||
|
|
||||||
#http://www.sxw.org.uk/computing/patches/openssh.html
|
#http://www.sxw.org.uk/computing/patches/openssh.html
|
||||||
Patch800: openssh-5.9p1-gsskex.patch
|
Patch800: openssh-5.9p1-gsskex.patch
|
||||||
@ -459,6 +462,7 @@ popd
|
|||||||
%patch711 -p1 -b .log-usepam-no
|
%patch711 -p1 -b .log-usepam-no
|
||||||
%patch712 -p1 -b .evp-ctr
|
%patch712 -p1 -b .evp-ctr
|
||||||
%patch713 -p1 -b .ctr-cavs
|
%patch713 -p1 -b .ctr-cavs
|
||||||
|
%patch714 -p0 -b .null-xcrypt
|
||||||
|
|
||||||
%patch800 -p1 -b .gsskex
|
%patch800 -p1 -b .gsskex
|
||||||
%patch801 -p1 -b .force_krb
|
%patch801 -p1 -b .force_krb
|
||||||
|
Loading…
Reference in New Issue
Block a user