]> git.sur5r.net Git - openldap/commitdiff
Insert missing ')'...
authorKurt Zeilenga <kurt@openldap.org>
Thu, 14 Jan 1999 06:28:50 +0000 (06:28 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 14 Jan 1999 06:28:50 +0000 (06:28 +0000)
libraries/libldap/init.c

index 8813f26d7f0470c26f62ee597d174579a6a5b17b..81f31a1d8927c383dd9f8e5586b56ca84e01a2d5 100644 (file)
@@ -304,6 +304,12 @@ void openldap_ldap_initialize( void )
        LDAP_BOOL_SET(&gopts, LDAP_BOOL_REFERRALS);
 #endif
 
+       openldap_ldap_initialized = 1;
+
+       if( getenv("LDAPNOINIT") != NULL ) {
+               return;
+       }
+
        openldap_ldap_init_w_conf(DEFAULT_LDAP_CONF_FILE);
        openldap_ldap_init_w_userconf(DEFAULT_LDAP_USERRC_FILE);
 
@@ -316,6 +322,4 @@ void openldap_ldap_initialize( void )
        }
 
        openldap_ldap_init_w_env(NULL);
-
-       openldap_ldap_initialized = 1;
 }