parent
91ac19e61e
commit
1f856268f5
19
openldap-nss-nofork.patch
Normal file
19
openldap-nss-nofork.patch
Normal file
@ -0,0 +1,19 @@
|
||||
fix: OpenLDAP can't use TLS after a fork()
|
||||
|
||||
Resolves: #636956
|
||||
Upstream ITS: #6862
|
||||
Author: Rich Megginson <rmeggins@redhat.com>
|
||||
|
||||
--- openldap-2.4.24.orig/libraries/libldap/tls_m.c
|
||||
+++ openldap-2.4.24/libraries/libldap/tls_m.c
|
||||
@@ -2890,7 +2890,9 @@
|
||||
* context in the child.
|
||||
*/
|
||||
if ( !nofork ) {
|
||||
- PR_SetEnv( "NSS_STRICT_NOFORK=DISABLED" );
|
||||
+ /* will leak one time */
|
||||
+ char *noforkenvvar = PL_strdup( "NSS_STRICT_NOFORK=DISABLED" );
|
||||
+ PR_SetEnv( noforkenvvar );
|
||||
}
|
||||
|
||||
return 0;
|
@ -28,6 +28,7 @@ Patch5: openldap-export-ldif.patch
|
||||
Patch6: openldap-smbk5pwd-overlay.patch
|
||||
Patch7: openldap-ldaprc-currentdir.patch
|
||||
Patch8: openldap-userconfig-setgid.patch
|
||||
Patch9: openldap-nss-nofork.patch
|
||||
|
||||
# patches for the evolution library (see README.evolution)
|
||||
Patch200: openldap-evolution-ntlm.patch
|
||||
@ -128,6 +129,7 @@ pushd openldap-%{version}
|
||||
%patch6 -p1 -b .smbk5pwd-overlay
|
||||
%patch7 -p1 -b .ldaprc-currentdir
|
||||
%patch8 -p1 -b .userconfig-setgid
|
||||
%patch9 -p1 -b .nss-nofork
|
||||
|
||||
cp %{_datadir}/libtool/config/config.{sub,guess} build/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user