From e5dae640f2c5d8364c94ba4076deb9c1c8914f71 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 30 Jul 2014 06:55:36 -0700 Subject: [PATCH] ITS#7909 fix slap_callback init --- servers/slapd/overlays/rwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/overlays/rwm.c b/servers/slapd/overlays/rwm.c index 2973a45370..1fbfac3a9f 100644 --- a/servers/slapd/overlays/rwm.c +++ b/servers/slapd/overlays/rwm.c @@ -178,7 +178,7 @@ rwm_callback_get( Operation *op ) { rwm_op_cb *roc; - roc = op->o_tmpalloc( sizeof( struct rwm_op_cb ), op->o_tmpmemctx ); + roc = op->o_tmpcalloc( 1, sizeof( struct rwm_op_cb ), op->o_tmpmemctx ); roc->cb.sc_cleanup = rwm_op_cleanup; roc->cb.sc_response = NULL; roc->cb.sc_next = op->o_callback; -- 2.39.5