smbd/smb2_ioctl: fail zero length copy chunk requests
authorDavid Disseldorp <ddiss@samba.org>
Thu, 6 Feb 2014 19:12:21 +0000 (20:12 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 7 Feb 2014 00:15:28 +0000 (16:15 -0800)
commit00906f9604ad3e633e3d3cbc8d9dc4e2e305a455
tree4760beb00f44cbedfd7f8802b9971c394fe2ebcc
parent54d07da81e181072b530e88b42d0d0d17fe60df0
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>
source3/smbd/smb2_ioctl_network_fs.c