From: Stefan Metzmacher Date: Thu, 10 Apr 2025 14:48:48 +0000 (+0200) Subject: s4:libcli: pass struct loadparm_context to smb2_connect_ext() X-Git-Tag: tevent-0.17.0~248 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d07f2c8eccd932b613415a524e655b215c24731;p=thirdparty%2Fsamba.git s4:libcli: pass struct loadparm_context to smb2_connect_ext() Signed-off-by: Stefan Metzmacher Reviewed-by: Volker Lendecke --- diff --git a/source4/libcli/smb2/connect.c b/source4/libcli/smb2/connect.c index f800a560236..0bad34ad87b 100644 --- a/source4/libcli/smb2/connect.c +++ b/source4/libcli/smb2/connect.c @@ -394,6 +394,7 @@ NTSTATUS smb2_connect_recv(struct tevent_req *req, NTSTATUS smb2_connect_ext(TALLOC_CTX *mem_ctx, const char *host, const char *share, + struct loadparm_context *lp_ctx, struct resolve_context *resolve_ctx, struct cli_credentials *credentials, struct smbXcli_conn **existing_conn, @@ -462,7 +463,7 @@ NTSTATUS smb2_connect(TALLOC_CTX *mem_ctx, { NTSTATUS status; - status = smb2_connect_ext(mem_ctx, host, share, resolve_ctx, + status = smb2_connect_ext(mem_ctx, host, share, lp_ctx, resolve_ctx, credentials, NULL, /* existing_conn */ 0, /* previous_session_id */ diff --git a/source4/torture/smb2/multichannel.c b/source4/torture/smb2/multichannel.c index 8c0e0a3f05e..fc131cc17a9 100644 --- a/source4/torture/smb2/multichannel.c +++ b/source4/torture/smb2/multichannel.c @@ -2649,6 +2649,7 @@ static bool test_multichannel_bug_15346(struct torture_context *tctx, status = smb2_connect_ext(state->conns, host, share, + tctx->lp_ctx, resolve_ctx, samba_cmdline_get_creds(), &conn->smbXcli, diff --git a/source4/torture/smb2/util.c b/source4/torture/smb2/util.c index 00f69030f82..65989db0325 100644 --- a/source4/torture/smb2/util.c +++ b/source4/torture/smb2/util.c @@ -423,6 +423,7 @@ bool torture_smb2_connection_ext(struct torture_context *tctx, status = smb2_connect_ext(tctx, host, share, + tctx->lp_ctx, lpcfg_resolve_context(tctx->lp_ctx), samba_cmdline_get_creds(), NULL, /* existing_conn */