From 3a857371916ed9867174233b6623c2260d438202 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 25 Jul 2012 16:38:45 +0200 Subject: s3:smb2_ioctl: allow clients to send padding at the end of FSCTL_VALIDATE_NEGOTIATE_INFO metze --- source3/smbd/smb2_ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit