summaryrefslogtreecommitdiff
path: root/source4/torture/raw/ioctl.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-05-16 16:50:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:07:25 -0500
commit410fb90322cf47780a9af4f5e38e57fcfa528471 (patch)
tree347b45882f2a0af7f1583ba007c076dcbffe0181 /source4/torture/raw/ioctl.c
parent12f377c638d118da58f2f2802baf28961a631f0f (diff)
downloadsamba-410fb90322cf47780a9af4f5e38e57fcfa528471.tar.gz
samba-410fb90322cf47780a9af4f5e38e57fcfa528471.tar.bz2
samba-410fb90322cf47780a9af4f5e38e57fcfa528471.zip
r15640: - NT IOCTL calls also have an 'in' data_blob
- fix the receive code of NT IOCTL's we only need the NTTRANS data payload not the SMB payload here metze (This used to be commit 358d03143f0a78344c1af720e33ebe2619df09df)
Diffstat (limited to 'source4/torture/raw/ioctl.c')
-rw-r--r--source4/torture/raw/ioctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/torture/raw/ioctl.c b/source4/torture/raw/ioctl.c
index 22e90bed8a..cd93047576 100644
--- a/source4/torture/raw/ioctl.c
+++ b/source4/torture/raw/ioctl.c
@@ -105,6 +105,7 @@ static BOOL test_fsctl(struct smbcli_state *cli, TALLOC_CTX *mem_ctx)
nt.ntioctl.in.file.fnum = fnum;
nt.ntioctl.in.fsctl = True;
nt.ntioctl.in.filter = 0;
+ nt.ntioctl.in.blob = data_blob(NULL, 0);
status = smb_raw_ioctl(cli->tree, mem_ctx, &nt);
CHECK_STATUS(status, NT_STATUS_OK);
@@ -115,6 +116,7 @@ static BOOL test_fsctl(struct smbcli_state *cli, TALLOC_CTX *mem_ctx)
nt.ntioctl.in.file.fnum = fnum;
nt.ntioctl.in.fsctl = True;
nt.ntioctl.in.filter = 0;
+ nt.ntioctl.in.blob = data_blob(NULL, 0);
status = smb_raw_ioctl(cli->tree, mem_ctx, &nt);
if (NT_STATUS_IS_OK(status)) {