diff --git a/source4/libcli/smb2/connect.c b/source4/libcli/smb2/connect.c index 1f68d90538b..64b67865446 100644 --- a/source4/libcli/smb2/connect.c +++ b/source4/libcli/smb2/connect.c @@ -405,6 +405,7 @@ NTSTATUS smb2_connect_ext(TALLOC_CTX *mem_ctx, const char *share, struct resolve_context *resolve_ctx, struct cli_credentials *credentials, + struct smbXcli_conn **existing_conn, uint64_t previous_session_id, struct smb2_tree **tree, struct tevent_context *ev, @@ -429,7 +430,7 @@ NTSTATUS smb2_connect_ext(TALLOC_CTX *mem_ctx, resolve_ctx, credentials, false, /* fallback_to_anonymous */ - NULL, /* existing_conn */ + existing_conn, previous_session_id, options, socket_options, @@ -473,6 +474,7 @@ NTSTATUS smb2_connect(TALLOC_CTX *mem_ctx, status = smb2_connect_ext(mem_ctx, host, ports, share, resolve_ctx, credentials, + NULL, /* existing_conn */ 0, /* previous_session_id */ tree, ev, options, socket_options, gensec_settings); diff --git a/source4/torture/smb2/util.c b/source4/torture/smb2/util.c index ecf80d9105b..233f589c73f 100644 --- a/source4/torture/smb2/util.c +++ b/source4/torture/smb2/util.c @@ -426,6 +426,7 @@ bool torture_smb2_connection_ext(struct torture_context *tctx, share, lpcfg_resolve_context(tctx->lp_ctx), samba_cmdline_get_creds(), + NULL, /* existing_conn */ previous_session_id, tree, tctx->ev,