summaryrefslogtreecommitdiff
path: root/source3/smbd/smb2_ioctl.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-07-25 16:38:45 +0200
committerStefan Metzmacher <metze@samba.org>2012-07-25 23:31:02 +0200
commit3a857371916ed9867174233b6623c2260d438202 (patch)
tree0bd7a37f275b353488620e694bb83f79fbe10fb2 /source3/smbd/smb2_ioctl.c
parent3cce5214f9d458f95885a5fc6b5a7b946a7b50a0 (diff)
downloadsamba-3a857371916ed9867174233b6623c2260d438202.tar.gz
samba-3a857371916ed9867174233b6623c2260d438202.tar.bz2
samba-3a857371916ed9867174233b6623c2260d438202.zip
s3:smb2_ioctl: allow clients to send padding at the end of FSCTL_VALIDATE_NEGOTIATE_INFO
metze
Diffstat (limited to 'source3/smbd/smb2_ioctl.c')
-rw-r--r--source3/smbd/smb2_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/smb2_ioctl.c b/source3/smbd/smb2_ioctl.c
index 56c075e1db..3e2b82faaf 100644
--- a/source3/smbd/smb2_ioctl.c
+++ b/source3/smbd/smb2_ioctl.c
@@ -509,7 +509,7 @@ static struct tevent_req *smbd_smb2_ioctl_send(TALLOC_CTX *mem_ctx,
in_security_mode = SVAL(in_input.data, 0x14);
in_num_dialects = SVAL(in_input.data, 0x16);
- if (in_input.length != (0x18 + in_num_dialects*2)) {
+ if (in_input.length < (0x18 + in_num_dialects*2)) {
tevent_req_nterror(req, NT_STATUS_INVALID_PARAMETER);
return tevent_req_post(req, ev);
}