summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
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)) {