]> git.sur5r.net Git - openldap/commitdiff
Fix at_destroy free of slap_schema.si_at_undefined (when it's NULL)
authorHoward Chu <hyc@openldap.org>
Sat, 5 Jan 2002 11:41:03 +0000 (11:41 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 5 Jan 2002 11:41:03 +0000 (11:41 +0000)
servers/slapd/at.c

index 4753d0775866c425b89054515d14fa9c23f6af69..29cc14df25152151f9cd77fe1b05cc92ddf8b6ac 100644 (file)
@@ -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