]> git.sur5r.net Git - openldap/commitdiff
don't muck with SlapReply during response (ITS#4173)
authorPierangelo Masarati <ando@openldap.org>
Tue, 15 Nov 2005 18:27:40 +0000 (18:27 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 15 Nov 2005 18:27:40 +0000 (18:27 +0000)
servers/slapd/overlays/syncprov.c

index afe894f795bf021f2a8a5f46885d47591f7f80b1..a9d71afa581132c4e7f754c5a5ddd6230b4a416f 100644 (file)
@@ -1222,6 +1222,7 @@ syncprov_checkpoint( Operation *op, SlapReply *rs, slap_overinst *on )
        syncprov_info_t         *si = on->on_bi.bi_private;
        Modifications mod;
        Operation opm;
+       SlapReply rsm;
        struct berval bv[2];
        slap_callback cb = {0};
 
@@ -1243,7 +1244,7 @@ syncprov_checkpoint( Operation *op, SlapReply *rs, slap_overinst *on )
        opm.o_req_ndn = op->o_bd->be_nsuffix[0];
        opm.o_bd->bd_info = on->on_info->oi_orig;
        opm.o_managedsait = SLAP_CONTROL_NONCRITICAL;
-       opm.o_bd->be_modify( &opm, rs );
+       opm.o_bd->be_modify( &opm, &rsm );
        if ( mod.sml_next != NULL ) {
                slap_mods_free( mod.sml_next, 1 );
        }