From bd5e9758f8350b5137dccf0d5ebf24aefb970997 Mon Sep 17 00:00:00 2001 From: David Disseldorp Date: Wed, 21 Sep 2011 21:50:29 +0200 Subject: s4-torture: remove unchecked read from smb2 create Add a corresponding test case to smb2.read. Signed-off-by: Stefan Metzmacher --- source4/torture/smb2/util.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'source4/torture/smb2/util.c') diff --git a/source4/torture/smb2/util.c b/source4/torture/smb2/util.c index 54aea81e0b..a94b0d76b6 100644 --- a/source4/torture/smb2/util.c +++ b/source4/torture/smb2/util.c @@ -298,7 +298,6 @@ NTSTATUS torture_smb2_testfile(struct smb2_tree *tree, const char *fname, struct smb2_handle *handle) { struct smb2_create io; - struct smb2_read r; NTSTATUS status; ZERO_STRUCT(io); @@ -318,14 +317,6 @@ NTSTATUS torture_smb2_testfile(struct smb2_tree *tree, const char *fname, *handle = io.out.file.handle; - ZERO_STRUCT(r); - r.in.file.handle = *handle; - r.in.length = 5; - r.in.offset = 0; - - // What is the purpose of this? Server returns EOF. - smb2_read(tree, tree, &r); - return NT_STATUS_OK; } -- cgit