s4:torture/smb2: let torture_smb2_con_sopt() use smb2_connect()
authorStefan Metzmacher <metze@samba.org>
Mon, 7 Aug 2023 09:03:41 +0000 (11:03 +0200)
committerJule Anger <janger@samba.org>
Fri, 11 Aug 2023 07:53:15 +0000 (07:53 +0000)
There's no need for smb2_connect_ext().

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit ade663ee6ca1a2813b203ea667d933f4dab9e7b7)

source4/torture/smb2/util.c

index ae6c14ebcbd22f63138f5a03845225bf30073da2..01b1b2f0793aa447781c3ed04e157fdfed06375b 100644 (file)
@@ -475,19 +475,18 @@ bool torture_smb2_con_sopt(struct torture_context *tctx,
                return false;
        }
 
-       status = smb2_connect_ext(tctx,
-                                 host,
-                                 lpcfg_smb_ports(tctx->lp_ctx),
-                                 share,
-                                 lpcfg_resolve_context(tctx->lp_ctx),
-                                 samba_cmdline_get_creds(),
-                                 0,
-                                 tree,
-                                 tctx->ev,
-                                 &options,
-                                 lpcfg_socket_options(tctx->lp_ctx),
-                                 lpcfg_gensec_settings(tctx, tctx->lp_ctx)
-                                 );
+       status = smb2_connect(tctx,
+                             host,
+                             lpcfg_smb_ports(tctx->lp_ctx),
+                             share,
+                             lpcfg_resolve_context(tctx->lp_ctx),
+                             samba_cmdline_get_creds(),
+                             tree,
+                             tctx->ev,
+                             &options,
+                             lpcfg_socket_options(tctx->lp_ctx),
+                             lpcfg_gensec_settings(tctx, tctx->lp_ctx)
+                             );
        if (!NT_STATUS_IS_OK(status)) {
                torture_comment(tctx, "Failed to connect to SMB2 share \\\\%s\\%s - %s\n",
                       host, share, nt_errstr(status));