mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#9121 fix prev commit
Only flush entry if dynlist_prepare_entry altered it
This commit is contained in:
parent
5d8c491fa1
commit
299fb490a2
@ -962,9 +962,11 @@ dynlist_search2resp( Operation *op, SlapReply *rs )
|
|||||||
/* See if this is one of our dynamic entries */
|
/* See if this is one of our dynamic entries */
|
||||||
dyn = tavl_find( ds->ds_names, &rs->sr_entry->e_nname, dynlist_avl_cmp );
|
dyn = tavl_find( ds->ds_names, &rs->sr_entry->e_nname, dynlist_avl_cmp );
|
||||||
if ( dyn ) {
|
if ( dyn ) {
|
||||||
|
Entry *e = rs->sr_entry;
|
||||||
dyn->dy_seen = 1;
|
dyn->dy_seen = 1;
|
||||||
rc = dynlist_prepare_entry( op, rs, dyn->dy_dli );
|
rc = dynlist_prepare_entry( op, rs, dyn->dy_dli );
|
||||||
if ( ds->ds_origfilter && test_filter( op, rs->sr_entry, ds->ds_origfilter ) != LDAP_COMPARE_TRUE ) {
|
if ( ds->ds_origfilter && test_filter( op, rs->sr_entry, ds->ds_origfilter ) != LDAP_COMPARE_TRUE ) {
|
||||||
|
if ( e != rs->sr_entry )
|
||||||
rs_flush_entry( op, rs, NULL );
|
rs_flush_entry( op, rs, NULL );
|
||||||
rc = LDAP_SUCCESS;
|
rc = LDAP_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user