diff options
author | Volker Lendecke <vl@samba.org> | 2013-08-27 09:39:17 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-08-28 23:37:08 +0200 |
commit | 5634f240fd4273cb7327111140ccbea0fd41e3fc (patch) | |
tree | 6477913bf2a1906b9b2e46ee494285cc4407d4cb /source3/smbd | |
parent | b37edda32930fec372d6467d442f67532c3fbd33 (diff) | |
download | samba-5634f240fd4273cb7327111140ccbea0fd41e3fc.tar.gz samba-5634f240fd4273cb7327111140ccbea0fd41e3fc.tar.xz samba-5634f240fd4273cb7327111140ccbea0fd41e3fc.zip |
smbd: Fix error return for STREAM_INFO
The stream_info marshalling follows its own rules. This needs unifying
eventually...
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>
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/trans2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 37f578c2d3..576e289b86 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -4243,6 +4243,10 @@ static NTSTATUS marshall_stream_info(unsigned int num_streams, unsigned int i; unsigned int ofs = 0; + if (max_data_bytes < 32) { + return NT_STATUS_INFO_LENGTH_MISMATCH; + } + for (i = 0; i < num_streams; i++) { unsigned int next_offset; size_t namelen; |