summaryrefslogtreecommitdiff
path: root/source4/torture/smb2/connect.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/smb2/connect.c')
-rw-r--r--source4/torture/smb2/connect.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/torture/smb2/connect.c b/source4/torture/smb2/connect.c
index a1215e3ae7..a4f4cb6ba4 100644
--- a/source4/torture/smb2/connect.c
+++ b/source4/torture/smb2/connect.c
@@ -69,6 +69,7 @@ static NTSTATUS torture_smb2_write(struct smb2_tree *tree, struct smb2_handle ha
{
struct smb2_write w;
struct smb2_read r;
+ struct smb2_flush f;
NTSTATUS status;
DATA_BLOB data;
int i;
@@ -103,6 +104,15 @@ static NTSTATUS torture_smb2_write(struct smb2_tree *tree, struct smb2_handle ha
torture_smb2_all_info(tree, handle);
+ ZERO_STRUCT(f);
+ f.in.handle = handle;
+
+ status = smb2_flush(tree, &f);
+ if (!NT_STATUS_IS_OK(status)) {
+ printf("flush failed - %s\n", nt_errstr(status));
+ return status;
+ }
+
ZERO_STRUCT(r);
r.in.length = data.length;
r.in.offset = 0;