summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/torture/smb2/connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/smb2/connect.c b/source4/torture/smb2/connect.c
index 01ffffa484..bd1abce827 100644
--- a/source4/torture/smb2/connect.c
+++ b/source4/torture/smb2/connect.c
@@ -78,7 +78,7 @@ static NTSTATUS torture_smb2_write(struct torture_context *tctx, struct smb2_tre
} else if (torture_setting_bool(tctx, "samba4", false)) {
data = data_blob_talloc(tree, NULL, UINT16_MAX);
} else {
- data = data_blob_talloc(tree, NULL, 120000);
+ data = data_blob_talloc(tree, NULL, torture_setting_int(tctx, "smb2maxwrite", 120000));
}
for (i=0;i<data.length;i++) {
data.data[i] = i;