]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:messaging: let imessaging_client_init() use imessaging_init_discard_incoming()
authorStefan Metzmacher <metze@samba.org>
Wed, 28 Sep 2022 12:27:09 +0000 (14:27 +0200)
committerRalph Boehme <slow@samba.org>
Thu, 13 Oct 2022 13:32:30 +0000 (13:32 +0000)
imessaging_client_init() is for temporary stuff only, so we should drop
(unexpected) incoming messages unless we expect irpc responses.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Thu Oct 13 13:32:30 UTC 2022 on sn-devel-184

source4/lib/messaging/messaging.c

index 99107c8017692131cc34950e485e0d79ad0ed6b1..8603c167ad4bd245487e1ea6aad1d15daced80ab 100644 (file)
@@ -818,7 +818,7 @@ struct imessaging_context *imessaging_client_init(TALLOC_CTX *mem_ctx,
        /* This is because we are not in the s3 serverid database */
        id.unique_id = SERVERID_UNIQUE_ID_NOT_TO_VERIFY;
 
-       return imessaging_init(mem_ctx, lp_ctx, id, ev);
+       return imessaging_init_discard_incoming(mem_ctx, lp_ctx, id, ev);
 }
 
 /*