]> git.sur5r.net Git - openldap/commitdiff
ITS#6862 MozNSS - workaround PR_SetEnv bug
authorRich Megginson <rmeggins@redhat.com>
Tue, 21 Jun 2011 22:58:49 +0000 (15:58 -0700)
committerHoward Chu <hyc@openldap.org>
Tue, 21 Jun 2011 22:58:49 +0000 (15:58 -0700)
libraries/libldap/tls_m.c

index 7be703b490b07ccdd88e710a5c9a8544125e9fa1..224b571842848ffff49f10dc60de43ebc823de21 100644 (file)
@@ -2891,7 +2891,9 @@ tlsm_init( void )
         * 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;