diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/smb2/durable_open.c | 5 | ||||
-rw-r--r-- | source4/torture/smb2/util.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/source4/torture/smb2/durable_open.c b/source4/torture/smb2/durable_open.c index 3d4744d1de..03e6c9066c 100644 --- a/source4/torture/smb2/durable_open.c +++ b/source4/torture/smb2/durable_open.c @@ -560,7 +560,10 @@ bool test_durable_open_reopen4(struct torture_context *tctx, status = smb2_logoff(tree->session); CHECK_STATUS(status, NT_STATUS_OK); - if (!torture_smb2_session_setup(tctx, transport, mem_ctx, &session2)) { + if (!torture_smb2_session_setup(tctx, transport, + 0, /* previous_session_id */ + mem_ctx, &session2)) + { torture_warning(tctx, "session setup failed.\n"); ret = false; goto done; diff --git a/source4/torture/smb2/util.c b/source4/torture/smb2/util.c index 97a66783fc..403c1abadd 100644 --- a/source4/torture/smb2/util.c +++ b/source4/torture/smb2/util.c @@ -306,6 +306,7 @@ bool torture_smb2_tree_connect(struct torture_context *tctx, */ bool torture_smb2_session_setup(struct torture_context *tctx, struct smb2_transport *transport, + uint64_t previous_session_id, TALLOC_CTX *mem_ctx, struct smb2_session **_session) { @@ -322,7 +323,7 @@ bool torture_smb2_session_setup(struct torture_context *tctx, } status = smb2_session_setup_spnego(session, credentials, - 0 /* previous_session_id */); + previous_session_id); if (!NT_STATUS_IS_OK(status)) { printf("session setup failed: %s\n", nt_errstr(status)); talloc_free(session); |