From: Howard Chu Date: Sat, 5 Jan 2002 11:41:03 +0000 (+0000) Subject: Fix at_destroy free of slap_schema.si_at_undefined (when it's NULL) X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~279 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5fd983725e1df2c14af9fbe09ba2c105b279d5d1;p=openldap Fix at_destroy free of slap_schema.si_at_undefined (when it's NULL) --- diff --git a/servers/slapd/at.c b/servers/slapd/at.c index 4753d07758..29cc14df25 100644 --- a/servers/slapd/at.c +++ b/servers/slapd/at.c @@ -204,7 +204,8 @@ at_destroy( void ) ldap_pvt_thread_mutex_destroy(&a->sat_ad_mutex); ldap_attributetype_free((LDAPAttributeType *)a); } - ad_destroy(slap_schema.si_at_undefined->sat_ad); + if ( slap_schema.si_at_undefined ) + ad_destroy(slap_schema.si_at_undefined->sat_ad); } static int