Handle LDAP_INT_GLOBAL_OPT() failure in ldap_int_destroy_global_options()

This commit is contained in:
Hallvard Furuseth 2005-08-31 18:59:27 +00:00
parent 6c1bbc2816
commit 2e19c67235

View 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 ) {