summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-08-27 09:40:19 +0000
committerJeremy Allison <jra@samba.org>2013-08-28 23:37:08 +0200
commit1b1935b876a14154ef74e447bf53eb7cd0a5dde9 (patch)
tree79443ffed2aa8da3e87152d4787fffa1edcc63f9
parent5634f240fd4273cb7327111140ccbea0fd41e3fc (diff)
downloadsamba-1b1935b876a14154ef74e447bf53eb7cd0a5dde9.tar.gz
samba-1b1935b876a14154ef74e447bf53eb7cd0a5dde9.tar.bz2
samba-1b1935b876a14154ef74e447bf53eb7cd0a5dde9.zip
smbd: Correctly return INFO_LENGTH_MISMATCH for smb1
This is required if the client offered less buffer than the fixed portion of the info level data requires Bug: https://bugzilla.samba.org/show_bug.cgi?id=10106 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source3/smbd/trans2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 576e289b86..aaf0e62289 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -5611,6 +5611,10 @@ total_data=%u (should be %u)\n", (unsigned int)total_data, (unsigned int)IVAL(pd
reply_nterror(req, status);
return;
}
+ if (fixed_portion > max_data_bytes) {
+ reply_nterror(req, NT_STATUS_INFO_LENGTH_MISMATCH);
+ return;
+ }
send_trans2_replies(conn, req, NT_STATUS_OK, params, param_size, *ppdata, data_size,
max_data_bytes);