smbd/smb2_ioctl: fail zero length copy chunk requests
commit1271434175a3858abbb3aed88d0bd3ee2eb302a7
authorDavid Disseldorp <ddiss@samba.org>
Thu, 6 Feb 2014 19:12:21 +0000 (6 20:12 +0100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 14 Feb 2014 19:10:08 +0000 (14 20:10 +0100)
tree68627089fb557996ef452903559dffd0df238aa1
parent3a3d0272b1c479080cb73010a2a6b2ab6f8ed660
smbd/smb2_ioctl: fail zero length copy chunk requests

As documented in MS-SMB2 3.3.5.15.6 Handling a Server-Side Data Copy
Request, an invalid parameter response should be sent when:

The Length value in a single chunk is greater than
ServerSideCopyMaxChunkSize or *equal to zero*.

We do not currently abide by the latter part of this clause.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=10424

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 00906f9604ad3e633e3d3cbc8d9dc4e2e305a455)
source3/smbd/smb2_ioctl_network_fs.c