From 3d189671bdf991828a2aa9c4ddd5eb95ae0023f2 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 24 Oct 2009 05:59:39 +0000 Subject: [PATCH] ITS#6310 dup entry before adding to cache --- servers/slapd/overlays/pcache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }