]> git.sur5r.net Git - openldap/commitdiff
Handle LDAP_INT_GLOBAL_OPT() failure in ldap_int_destroy_global_options()
authorHallvard Furuseth <hallvard@openldap.org>
Wed, 31 Aug 2005 18:59:27 +0000 (18:59 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Wed, 31 Aug 2005 18:59:27 +0000 (18:59 +0000)
libraries/libldap/init.c

index 89d5db8a0db7400b8faf71b32b7a12d7be4a712d..fe47f8dc392c23755443e68e63a06f9b8033207d 100644 (file)
@@ -397,6 +397,9 @@ ldap_int_destroy_global_options(void)
 {
        struct ldapoptions *gopts = LDAP_INT_GLOBAL_OPT();
 
+       if ( gopts == NULL )
+               return;
+
        gopts->ldo_valid = LDAP_UNINITIALIZED;
 
        if ( gopts->ldo_defludp ) {