From 5fd983725e1df2c14af9fbe09ba2c105b279d5d1 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 5 Jan 2002 11:41:03 +0000 Subject: [PATCH] Fix at_destroy free of slap_schema.si_at_undefined (when it's NULL) --- servers/slapd/at.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5