openldap/openldap-nss-nofork.patch

20 lines
488 B
Diff
Raw Normal View History

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;