From: Howard Chu Date: Sat, 27 Nov 2004 07:04:52 +0000 (+0000) Subject: Fix op_cleanup X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~210 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=287d5be13ceeb0c20258fd380516cf6c0ea23fce;p=openldap Fix op_cleanup --- diff --git a/servers/slapd/overlays/seqmod.c b/servers/slapd/overlays/seqmod.c index 3730d17634..db23781708 100644 --- a/servers/slapd/overlays/seqmod.c +++ b/servers/slapd/overlays/seqmod.c @@ -54,12 +54,13 @@ seqmod_op_cleanup( Operation *op, SlapReply *rs ) { slap_callback *sc = op->o_callback; seqmod_info *sm = sc->sc_private; - modtarget *mt; + modtarget *mt, mtdummy; Avlnode *av; + mtdummy.mt_op = op; /* This op is done, remove it */ ldap_pvt_thread_mutex_lock( &sm->sm_mutex ); - av = avl_find2( sm->sm_mods, mt, sm_avl_cmp ); + av = avl_find2( sm->sm_mods, &mtdummy, sm_avl_cmp ); assert(av); mt = av->avl_data;