mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
always set sr_flags before sending an entry
This commit is contained in:
parent
2567e820b7
commit
194aa68dab
@ -2328,9 +2328,7 @@ backsql_search( Operation *op, SlapReply *rs )
|
||||
rs->sr_attrs = op->ors_attrs;
|
||||
rs->sr_operational_attrs = NULL;
|
||||
rs->sr_entry = e;
|
||||
if ( e == &user_entry ) {
|
||||
rs->sr_flags = REP_ENTRY_MODIFIABLE;
|
||||
}
|
||||
rs->sr_flags = ( e == &user_entry ) ? REP_ENTRY_MODIFIABLE : 0;
|
||||
/* FIXME: need the whole entry (ITS#3480) */
|
||||
sres = send_search_entry( op, rs );
|
||||
rs->sr_entry = NULL;
|
||||
|
@ -3028,6 +3028,7 @@ config_send( Operation *op, SlapReply *rs, CfEntryInfo *ce, int depth )
|
||||
{
|
||||
rs->sr_attrs = op->ors_attrs;
|
||||
rs->sr_entry = ce->ce_entry;
|
||||
rs->sr_flags = 0;
|
||||
rc = send_search_entry( op, rs );
|
||||
}
|
||||
if ( op->ors_scope == LDAP_SCOPE_SUBTREE ) {
|
||||
|
@ -286,6 +286,7 @@ fe_op_search( Operation *op, SlapReply *rs )
|
||||
rs->sr_entry = entry;
|
||||
rs->sr_attrs = op->ors_attrs;
|
||||
rs->sr_operational_attrs = NULL;
|
||||
rs->sr_flags = 0;
|
||||
send_search_entry( op, rs );
|
||||
rs->sr_entry = NULL;
|
||||
rs->sr_operational_attrs = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user