Commit ec6a6638 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

reset SlapReply flags

parent b3d23846
......@@ -221,6 +221,7 @@ dnssrv_back_search(
if( rc == LDAP_COMPARE_TRUE ) {
rs->sr_entry = e;
rs->sr_attrs = op->oq_search.rs_attrs;
rs->sr_flags = REP_ENTRY_MODIFIABLE;
send_search_entry( op, rs );
rs->sr_entry = NULL;
rs->sr_attrs = NULL;
......
......@@ -187,6 +187,7 @@ fail:;
LDAP_BUILD_ENTRY_PRIVATE)) == LDAP_SUCCESS ) {
rs->sr_entry = &ent;
rs->sr_attrs = op->ors_attrs;
rs->sr_flags = 0;
abort = send_search_entry( op, rs );
while (ent.e_attrs) {
Attribute *a;
......
......@@ -430,6 +430,7 @@ searchit:
}
if (e) {
rs->sr_flags = 0;
result = send_search_entry( op, rs );
switch (result) {
......
......@@ -719,6 +719,7 @@ meta_send_entry(
}
rs->sr_entry = &ent;
rs->sr_attrs = op->ors_attrs;
rs->sr_flags = 0;
send_search_entry( op, rs );
rs->sr_entry = NULL;
rs->sr_attrs = NULL;
......
......@@ -92,6 +92,7 @@ monitor_send_children(
rc = test_filter( op, e, op->oq_search.rs_filter );
if ( rc == LDAP_COMPARE_TRUE ) {
rs->sr_entry = e;
rs->sr_flags = 0;
send_search_entry( op, rs );
rs->sr_entry = NULL;
}
......@@ -155,6 +156,7 @@ monitor_back_search( Operation *op, SlapReply *rs )
rc = test_filter( op, e, op->oq_search.rs_filter );
if ( rc == LDAP_COMPARE_TRUE ) {
rs->sr_entry = e;
rs->sr_flags = 0;
send_search_entry( op, rs );
rs->sr_entry = NULL;
}
......@@ -175,6 +177,7 @@ monitor_back_search( Operation *op, SlapReply *rs )
rc = test_filter( op, e, op->oq_search.rs_filter );
if ( rc == LDAP_COMPARE_TRUE ) {
rs->sr_entry = e;
rs->sr_flags = 0;
send_search_entry( op, rs );
rs->sr_entry = NULL;
}
......
......@@ -131,6 +131,7 @@ passwd_back_search(
if ( test_filter( op, e, op->ors_filter ) == LDAP_COMPARE_TRUE ) {
rs->sr_entry = e;
rs->sr_attrs = op->ors_attrs;
rs->sr_flags = REP_ENTRY_MODIFIABLE;
send_search_entry( op, rs );
}
}
......@@ -174,6 +175,7 @@ passwd_back_search(
rs->sr_entry = e;
rs->sr_attrs = op->ors_attrs;
rs->sr_flags = REP_ENTRY_MODIFIABLE;
send_search_entry( op, rs );
}
......@@ -233,6 +235,7 @@ passwd_back_search(
if ( test_filter( op, e, op->ors_filter ) == LDAP_COMPARE_TRUE ) {
rs->sr_entry = e;
rs->sr_attrs = op->ors_attrs;
rs->sr_flags = REP_ENTRY_MODIFIABLE;
send_search_entry( op, rs );
}
......
......@@ -100,6 +100,7 @@ perl_back_search(
if (send_entry) {
rs->sr_entry = e;
rs->sr_attrs = op->ors_attrs;
rs->sr_flags = REP_ENTRY_MODIFIABLE;
send_search_entry( op, rs );
}
......
......@@ -99,6 +99,7 @@ read_and_send_results(
buf, 0, 0 );
} else {
rs->sr_attrs = op->oq_search.rs_attrs;
rs->sr_flags = REP_ENTRY_MODIFIABLE;
send_search_entry( op, rs );
entry_free( rs->sr_entry );
}
......
......@@ -1339,6 +1339,7 @@ backsql_search( Operation *op, SlapReply *rs )
{
rs->sr_attrs = op->ors_attrs;
rs->sr_entry = entry;
rs->sr_flags = REP_ENTRY_MODIFIABLE;
sres = send_search_entry( op, rs );
rs->sr_entry = NULL;
rs->sr_attrs = NULL;
......
......@@ -87,6 +87,7 @@ slap_send_session_log(
rs->sr_entry = &e;
rs->sr_attrs = uuid_attr;
rs->sr_ctrls = ctrls;
rs->sr_flags = 0;
result = send_search_entry( op, rs );
sl_free( ctrls[num_ctrls-1]->ldctl_value.bv_val, op->o_tmpmemctx );
sl_free( ctrls[--num_ctrls], op->o_tmpmemctx );
......
......@@ -1174,6 +1174,7 @@ slapi_search_internal(
rs.sr_type = REP_SEARCH;
rs.sr_err = LDAP_SUCCESS;
rs.sr_attrs = an;
rs->sr_flags = REP_ENTRY_MODIFIABLE;
send_search_entry( op, &rs );
}
......
......@@ -1573,6 +1573,7 @@ slapi_send_ldap_search_entry(
rs.sr_attrs = an;
rs.sr_entry = e;
rs.sr_v2ref = NULL;
rs.sr_flags = 0;
if ( slapi_pblock_get( pb, SLAPI_OPERATION, (void *)&pOp ) != 0 ) {
return LDAP_OTHER;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment