]> git.sur5r.net Git - openldap/commitdiff
ITS#7909 fix slap_callback init
authorHoward Chu <hyc@openldap.org>
Wed, 30 Jul 2014 13:55:36 +0000 (06:55 -0700)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 30 Jul 2014 17:22:01 +0000 (12:22 -0500)
servers/slapd/overlays/rwm.c

index 2973a45370fa9f92160440972fd2e6e29a77c04d..1fbfac3a9f584d5e075eb3111085deae05057fd8 100644 (file)
@@ -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;