From: Howard Chu Date: Mon, 5 Jun 2006 22:31:17 +0000 (+0000) Subject: Fix db_init X-Git-Tag: OPENLDAP_REL_ENG_2_4_3ALPHA~9^2~179 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0657ee85f51a20b250dc1a55916f2b2d389cff18;p=openldap Fix db_init --- diff --git a/servers/slapd/overlays/auditlog.c b/servers/slapd/overlays/auditlog.c index 3dff229f4b..56f349bee2 100644 --- a/servers/slapd/overlays/auditlog.c +++ b/servers/slapd/overlays/auditlog.c @@ -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 );