From: Stefan Metzmacher Date: Thu, 3 Apr 2025 06:46:27 +0000 (+0200) Subject: s4:libcli: remove unused ports argument from smb2_connect_ext() X-Git-Tag: tevent-0.17.0~317 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9dbb29138ae94629ef3984b71bec0fd44914bb91;p=thirdparty%2Fsamba.git s4:libcli: remove unused ports argument from 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 ba2973e1f7a..e62f5797c7b 100644 --- a/source4/libcli/smb2/connect.c +++ b/source4/libcli/smb2/connect.c @@ -393,7 +393,6 @@ NTSTATUS smb2_connect_recv(struct tevent_req *req, */ NTSTATUS smb2_connect_ext(TALLOC_CTX *mem_ctx, const char *host, - const char **ports, const char *share, struct resolve_context *resolve_ctx, struct cli_credentials *credentials, @@ -463,7 +462,7 @@ NTSTATUS smb2_connect(TALLOC_CTX *mem_ctx, { NTSTATUS status; - status = smb2_connect_ext(mem_ctx, host, ports, share, resolve_ctx, + status = smb2_connect_ext(mem_ctx, host, share, 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 6b6e00e7c1d..332268eb4a1 100644 --- a/source4/torture/smb2/multichannel.c +++ b/source4/torture/smb2/multichannel.c @@ -2648,7 +2648,6 @@ static bool test_multichannel_bug_15346(struct torture_context *tctx, options.only_negprot = true; status = smb2_connect_ext(state->conns, host, - NULL, /* ports */ share, resolve_ctx, samba_cmdline_get_creds(), diff --git a/source4/torture/smb2/util.c b/source4/torture/smb2/util.c index e695ac3a643..0e8b3e78ba9 100644 --- a/source4/torture/smb2/util.c +++ b/source4/torture/smb2/util.c @@ -422,7 +422,6 @@ bool torture_smb2_connection_ext(struct torture_context *tctx, status = smb2_connect_ext(tctx, host, - lpcfg_smb_ports(tctx->lp_ctx), share, lpcfg_resolve_context(tctx->lp_ctx), samba_cmdline_get_creds(),