]> git.sur5r.net Git - openldap/commitdiff
ITS#7234 Fix syncprov entry leak: Set op->o_tag
authorHallvard Furuseth <hallvard@openldap.org>
Sat, 7 Apr 2012 11:10:51 +0000 (13:10 +0200)
committerHallvard Furuseth <hallvard@openldap.org>
Sat, 7 Apr 2012 12:13:50 +0000 (14:13 +0200)
servers/slapd/overlays/syncprov.c

index 2cdd7ac5bc3e6406198effe203da8e5f25ff89e0..a34108c56babcc7153b75964de3b42e3ded5d42f 100644 (file)
@@ -3086,6 +3086,7 @@ syncprov_db_open(
                }
                overlay_entry_release_ov( op, e, 0, on );
                if ( si->si_ctxcsn && !SLAP_DBCLEAN( be )) {
+                       op->o_tag = LDAP_REQ_SEARCH;
                        op->o_req_dn = be->be_suffix[0];
                        op->o_req_ndn = be->be_nsuffix[0];
                        op->ors_scope = LDAP_SCOPE_SUBTREE;