From b00f5d315d344b4aa9f7308d28510e247f1b9ca9 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 10 Apr 2025 16:48:48 +0200 Subject: [PATCH] s4:libcli: pass struct loadparm_context to smbcli_tree_full_connection() Signed-off-by: Stefan Metzmacher Reviewed-by: Volker Lendecke --- source4/libcli/cliconnect.c | 5 ++++- source4/libcli/raw/clitree.c | 1 + source4/torture/gentest.c | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/source4/libcli/cliconnect.c b/source4/libcli/cliconnect.c index 4e0c16b8ce7..37956eebbc1 100644 --- a/source4/libcli/cliconnect.c +++ b/source4/libcli/cliconnect.c @@ -185,7 +185,10 @@ NTSTATUS smbcli_full_connection(TALLOC_CTX *parent_ctx, &tree, host, sharename, devtype, socket_options, - credentials, resolve_ctx, ev, + credentials, + lp_ctx, + resolve_ctx, + ev, options, session_options, gensec_settings); diff --git a/source4/libcli/raw/clitree.c b/source4/libcli/raw/clitree.c index 9c02bd06315..ea2ec2238a7 100644 --- a/source4/libcli/raw/clitree.c +++ b/source4/libcli/raw/clitree.c @@ -188,6 +188,7 @@ NTSTATUS smbcli_tree_full_connection(TALLOC_CTX *parent_ctx, const char *service, const char *service_type, const char *socket_options, struct cli_credentials *credentials, + struct loadparm_context *lp_ctx, struct resolve_context *resolve_ctx, struct tevent_context *ev, struct smbcli_options *options, diff --git a/source4/torture/gentest.c b/source4/torture/gentest.c index 610403c2cd4..5b12e315e9f 100644 --- a/source4/torture/gentest.c +++ b/source4/torture/gentest.c @@ -246,6 +246,7 @@ static bool connect_servers(struct tevent_context *ev, servers[i].share_name, "A:", lpcfg_socket_options(lp_ctx), servers[i].credentials, + lp_ctx, lpcfg_resolve_context(lp_ctx), ev, &smb_options, &smb_session_options, -- 2.47.3