mdssvc: fix long running backend queries
authorRalph Boehme <slow@samba.org>
Thu, 23 Mar 2023 15:39:11 +0000 (16:39 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 26 Jul 2023 22:43:38 +0000 (22:43 +0000)
commit925fefae20e52a3c89a56bdd0cd5b98cc951db5f
treee01f1825213122117cef01ce274f0e9e8b5c0e3b
parent4149ef97e5906604be1587622f390f121db183e2
mdssvc: fix long running backend queries

If a query is still running in the backend and we have no results yet, returning
0 triggers a search termination by the client in latest macOS releases. macOS
returns 0x23 in this case.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15342

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/rpc_server/mdssvc/mdssvc.c