mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#6310 dup entry before adding to cache
This commit is contained in:
parent
3a688d8d59
commit
3d189671bd
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user