]> git.sur5r.net Git - openldap/commitdiff
Fix db_init
authorHoward Chu <hyc@openldap.org>
Mon, 5 Jun 2006 22:31:17 +0000 (22:31 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 5 Jun 2006 22:31:17 +0000 (22:31 +0000)
servers/slapd/overlays/auditlog.c

index 3dff229f4bdca31ac264ff9b99dd2b38021520d9..56f349bee29b123a0654140b2ac4c7d6cfcc4a41 100644 (file)
@@ -188,7 +188,7 @@ auditlog_db_init(
 )
 {
        slap_overinst *on = (slap_overinst *)be->bd_info;
-       auditlog_data *ad = ch_malloc(sizeof(auditlog_data));
+       auditlog_data *ad = ch_calloc(1, sizeof(auditlog_data));
 
        on->on_bi.bi_private = ad;
        ldap_pvt_thread_mutex_init( &ad->ad_mutex );