]> git.sur5r.net Git - openldap/commitdiff
Fix op_cleanup
authorHoward Chu <hyc@openldap.org>
Sat, 27 Nov 2004 07:04:52 +0000 (07:04 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 27 Nov 2004 07:04:52 +0000 (07:04 +0000)
servers/slapd/overlays/seqmod.c

index 3730d176348773873167e5814973fcac3d88cace..db237817084fe41cb1cc216d2f08cf6a5bf3a1f8 100644 (file)
@@ -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;