From 2e19c672358952467d10db766c8f285b5d44f485 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Wed, 31 Aug 2005 18:59:27 +0000 Subject: [PATCH] Handle LDAP_INT_GLOBAL_OPT() failure in ldap_int_destroy_global_options() --- libraries/libldap/init.c | 3 +++ 1 file changed, 3 insertions(+) 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 ) { -- 2.39.5