]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
mdssvc: don't fail mds_add_result() if result is not found in CNID set
authorRalph Boehme <slow@samba.org>
Mon, 10 May 2021 09:07:27 +0000 (11:07 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 16 Jun 2021 05:08:29 +0000 (05:08 +0000)
Just skip adding the result to the pending results set, don't return an
error. Returning an error triggers an error at the MDSSVC RPC error which is NOT
what we want here.

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

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

index 1b0badc4851b4ace4b618c8a40d9a184b7874041..60934fb63cc00951d7a612e89d8ba4626355b5dd 100644 (file)
@@ -567,7 +567,7 @@ bool mds_add_result(struct sl_query *slq, const char *path)
                                sizeof(uint64_t),
                                cnid_comp_fn);
                if (!found) {
-                       return false;
+                       return true;
                }
        }