summaryrefslogtreecommitdiff
path: root/source4/smb_server
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/smb_server
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/smb_server')
-rw-r--r--source4/smb_server/smb/nttrans.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/smb_server/smb/nttrans.c b/source4/smb_server/smb/nttrans.c
index e2fc962196..9154546693 100644
--- a/source4/smb_server/smb/nttrans.c
+++ b/source4/smb_server/smb/nttrans.c
@@ -304,7 +304,6 @@ static NTSTATUS nttrans_ioctl(struct smbsrv_request *req,
uint16_t fnum;
uint8_t filter;
BOOL fsctl;
- DATA_BLOB *blob;
NTSTATUS status;
/* should have at least 4 setup words */
@@ -320,13 +319,12 @@ static NTSTATUS nttrans_ioctl(struct smbsrv_request *req,
fsctl = CVAL(trans->in.setup, 6);
filter = CVAL(trans->in.setup, 7);
- blob = &trans->in.data;
-
nt->ntioctl.level = RAW_IOCTL_NTIOCTL;
nt->ntioctl.in.file.fnum = fnum;
nt->ntioctl.in.function = function;
nt->ntioctl.in.fsctl = fsctl;
nt->ntioctl.in.filter = filter;
+ nt->ntioctl.in.blob = trans->in.data;
status = nttrans_setup_reply(op, trans, 0, 0, 1);
NT_STATUS_NOT_OK_RETURN(status);