ITS#6310 dup entry before adding to cache

This commit is contained in:
Howard Chu 2009-10-24 05:59:39 +00:00
parent 3a688d8d59
commit 3d189671bd

View File

@ -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;
}