]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/overlays/rwm.c
ITS#7909 fix slap_callback init
[openldap] / 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;