]> git.sur5r.net Git - openldap/commitdiff
force entry release as appropriate (ITS#6081)
authorPierangelo Masarati <ando@openldap.org>
Wed, 29 Apr 2009 13:03:50 +0000 (13:03 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 29 Apr 2009 13:03:50 +0000 (13:03 +0000)
servers/slapd/overlays/rwm.c

index 3e6ba4952a1bcc7dc32c76bdf0f554d0c6efa648..09675bb004765641aa4facee11d98b7207354699 100644 (file)
@@ -879,6 +879,8 @@ rwm_entry_get_rw( Operation *op, struct berval *ndn,
        op2.ors_attrs = slap_anlist_all_attributes;
        rc = op2.o_bd->bd_info->bi_entry_get_rw( &op2, &mndn, oc, at, rw, ep );
        if ( rc == LDAP_SUCCESS && *ep != NULL ) {
+               /* we assume be_entry_release() needs to be called */
+               rs.sr_flags = REP_ENTRY_MUSTRELEASE;
                rs.sr_entry = *ep;
 
                /* duplicate & release */