From: Hallvard Furuseth Date: Wed, 31 Aug 2005 18:59:27 +0000 (+0000) Subject: Handle LDAP_INT_GLOBAL_OPT() failure in ldap_int_destroy_global_options() X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~521 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2e19c672358952467d10db766c8f285b5d44f485;p=openldap Handle LDAP_INT_GLOBAL_OPT() failure in ldap_int_destroy_global_options() --- diff --git a/libraries/libldap/init.c b/libraries/libldap/init.c index 89d5db8a0d..fe47f8dc39 100644 --- a/libraries/libldap/init.c +++ b/libraries/libldap/init.c @@ -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 ) {