summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-02-26 17:35:28 +0100
committerMichael Adam <obnox@samba.org>2012-02-28 00:08:52 +0100
commit727f3ee6acf8c7d8a4fd2c8a02eadf496e3687af (patch)
tree1b101d9d1de8ffaddfda0a7ed19450000aa363f1 /source3/torture
parent5ebbd46b4a8714e98bb14862f9c3dc31301d8404 (diff)
downloadsamba-727f3ee6acf8c7d8a4fd2c8a02eadf496e3687af.tar.gz
samba-727f3ee6acf8c7d8a4fd2c8a02eadf496e3687af.tar.bz2
samba-727f3ee6acf8c7d8a4fd2c8a02eadf496e3687af.zip
s3:libsmb:smb2: pass previous session ID to session setup, not previous session
We only need the session, and under some circumstances, it might complicate things for the caller to have to cope with the whole structure (talloc...).
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/test_smb2.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/source3/torture/test_smb2.c b/source3/torture/test_smb2.c
index 5b37213f12..9334ab73bc 100644
--- a/source3/torture/test_smb2.c
+++ b/source3/torture/test_smb2.c
@@ -426,7 +426,8 @@ bool run_smb2_session_reconnect(int dummy)
0x0, /* in_flags */
SMB2_CAP_DFS, /* in_capabilities */
0, /* in_channel */
- cli1->smb2.session, /* in_previous_session */
+ /* in_previous_session_id: */
+ smb2cli_session_current_id(cli1->smb2.session),
&in_blob); /* in_security_buffer */
if (subreq == NULL) {
printf("smb2cli_session_setup_send() returned NULL\n");
@@ -460,7 +461,8 @@ bool run_smb2_session_reconnect(int dummy)
0x0, /* in_flags */
SMB2_CAP_DFS, /* in_capabilities */
0, /* in_channel */
- cli1->smb2.session, /* in_previous_session */
+ /* in_previous_session_id: */
+ smb2cli_session_current_id(cli1->smb2.session),
&in_blob); /* in_security_buffer */
if (subreq == NULL) {
printf("smb2cli_session_setup_send() returned NULL\n");
@@ -881,7 +883,7 @@ bool run_smb2_multi_channel(int dummy)
0x01, /* in_flags */
SMB2_CAP_DFS, /* in_capabilities */
0, /* in_channel */
- NULL, /* in_previous_session */
+ 0, /* in_previous_session_id */
&in_blob); /* in_security_buffer */
if (subreq == NULL) {
printf("smb2cli_session_setup_send() returned NULL\n");
@@ -915,7 +917,7 @@ bool run_smb2_multi_channel(int dummy)
0x01, /* in_flags */
SMB2_CAP_DFS, /* in_capabilities */
0, /* in_channel */
- NULL, /* in_previous_session */
+ 0, /* in_previous_session_id */
&in_blob); /* in_security_buffer */
if (subreq == NULL) {
printf("smb2cli_session_setup_send() returned NULL\n");
@@ -1143,7 +1145,7 @@ bool run_smb2_session_reauth(int dummy)
0x0, /* in_flags */
SMB2_CAP_DFS, /* in_capabilities */
0, /* in_channel */
- NULL, /* in_previous_session */
+ 0, /* in_previous_session_id */
&in_blob); /* in_security_buffer */
if (subreq == NULL) {
printf("smb2cli_session_setup_send() returned NULL\n");
@@ -1199,7 +1201,7 @@ bool run_smb2_session_reauth(int dummy)
0x0, /* in_flags */
SMB2_CAP_DFS, /* in_capabilities */
0, /* in_channel */
- NULL, /* in_previous_session */
+ 0, /* in_previous_session_id */
&in_blob); /* in_security_buffer */
if (subreq == NULL) {
printf("smb2cli_session_setup_send() returned NULL\n");