summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/torture/smb2/connect.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/source4/torture/smb2/connect.c b/source4/torture/smb2/connect.c
index 077c873d08..34f8d5aa9f 100644
--- a/source4/torture/smb2/connect.c
+++ b/source4/torture/smb2/connect.c
@@ -72,9 +72,16 @@ static NTSTATUS torture_smb2_write(struct smb2_tree *tree, struct smb2_handle ha
struct smb2_read r;
NTSTATUS status;
DATA_BLOB data;
+ int i;
- data = data_blob_talloc(tree, NULL, 700);
- generate_random_buffer(data.data, data.length);
+ if (lp_parm_bool(-1, "torture", "dangerous", False)) {
+ data = data_blob_talloc(tree, NULL, 160000);
+ } else {
+ data = data_blob_talloc(tree, NULL, 120000);
+ }
+ for (i=0;i<data.length;i++) {
+ data.data[i] = i;
+ }
ZERO_STRUCT(w);
w.in.buffer_code = 0x31;