summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-06-20 01:03:38 +0200
committerMichael Adam <obnox@samba.org>2014-09-19 11:40:14 +0200
commitfe670be5c45e636788934fc45d45ee3c4c52bb50 (patch)
tree04ad3ed56325a532902df68a624b69d3ae0fdcf8 /source3
parent44b3fa6ff86a328ffcd2d98312c81aebaeacdbb1 (diff)
downloadsamba-fe670be5c45e636788934fc45d45ee3c4c52bb50.tar.gz
s3:torture: use cli_state_client_guid in run_smb2_multi_channel()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Fri Sep 19 11:40:15 CEST 2014 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/torture/test_smb2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/torture/test_smb2.c b/source3/torture/test_smb2.c
index 49acf3a3ba3..294e692d32f 100644
--- a/source3/torture/test_smb2.c
+++ b/source3/torture/test_smb2.c
@@ -27,6 +27,7 @@
#include "libsmb/proto.h"
#include "auth/gensec/gensec.h"
#include "auth_generic.h"
+#include "../librpc/ndr/libndr.h"
extern fstring host, workgroup, share, password, username, myname;
@@ -856,9 +857,12 @@ bool run_smb2_multi_channel(int dummy)
const char *hello = "Hello, world\n";
uint8_t *result;
uint32_t nread;
+ struct GUID saved_guid = cli_state_client_guid;
printf("Starting SMB2-MULTI-CHANNEL\n");
+ cli_state_client_guid = GUID_random();
+
if (!torture_init_connection(&cli1)) {
return false;
}
@@ -871,6 +875,8 @@ bool run_smb2_multi_channel(int dummy)
return false;
}
+ cli_state_client_guid = saved_guid;
+
status = smbXcli_negprot(cli1->conn, cli1->timeout,
PROTOCOL_SMB2_22, PROTOCOL_LATEST);
if (!NT_STATUS_IS_OK(status)) {