]> git.sur5r.net Git - openldap/commitdiff
ITS#6484 don't bypass other overlays' entry_release handler
authorHoward Chu <hyc@openldap.org>
Wed, 3 Mar 2010 23:36:29 +0000 (23:36 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 3 Mar 2010 23:36:29 +0000 (23:36 +0000)
servers/slapd/overlays/rwm.c

index 3c6f581c382efef3ad0c93848a43fb176a228398..edae72b0431a51415ceb2f53be5b7a2134c36bc0 100644 (file)
@@ -1512,7 +1512,9 @@ rwm_send_entry( Operation *op, SlapReply *rs )
                        goto fail;
                }
 
-               overlay_entry_release_ov( op, rs->sr_entry, 0, on );
+               op->o_bd->bd_info = (BackendInfo *)on->on_info;
+               be_entry_release_r( op, rs->sr_entry );
+               op->o_bd->bd_info = (BackendInfo *)on;
        }
 
        rs->sr_entry = e;