From f8caf85d9be53c79e0e9bdd04804ed7920b00194 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= Date: Fri, 23 Aug 2024 12:57:34 +0100 Subject: [PATCH] ITS#10248 Always generate a result on the original op --- servers/slapd/overlays/translucent.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/servers/slapd/overlays/translucent.c b/servers/slapd/overlays/translucent.c index 435047be6c..e5f7384aa2 100644 --- a/servers/slapd/overlays/translucent.c +++ b/servers/slapd/overlays/translucent.c @@ -802,8 +802,8 @@ static int translucent_search_cb(Operation *op, SlapReply *rs) { tc = op->o_callback->sc_private; - /* Don't let the op complete while we're gathering data */ - if ( rs->sr_type == REP_RESULT && ( tc->step & USE_LIST )) + /* We took over the op, don't let it complete yet */ + if ( rs->sr_type == REP_RESULT ) return 0; if(rs->sr_type != REP_SEARCH || !rs->sr_entry) @@ -1230,9 +1230,9 @@ static int translucent_search(Operation *op, SlapReply *rs) { rs->sr_flags = 0; rs->sr_entry = NULL; } - send_ldap_result( op, rs ); } + send_ldap_result( op, rs ); op->ors_slimit = tc.slimit; /* Free in reverse order */ -- 2.47.2