From: Howard Chu Date: Sat, 24 Oct 2009 05:59:39 +0000 (+0000) Subject: ITS#6310 dup entry before adding to cache X-Git-Tag: ACLCHECK_0~170 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3d189671bdf991828a2aa9c4ddd5eb95ae0023f2;p=openldap ITS#6310 dup entry before adding to cache --- diff --git a/servers/slapd/overlays/pcache.c b/servers/slapd/overlays/pcache.c index 309a192771..bfd1cd30db 100644 --- a/servers/slapd/overlays/pcache.c +++ b/servers/slapd/overlays/pcache.c @@ -836,6 +836,7 @@ merge_entry( slap_callback cb = { NULL, slap_null_cb, NULL, NULL }; + e = entry_dup( e ); attr = e->e_attrs; e->e_attrs = NULL; @@ -877,7 +878,7 @@ merge_entry( } } else { if ( op->ora_e == e ) - be_entry_release_w( op, e ); + entry_free( e ); rc = 1; }