libcli/smb: fix smb2cli_ioctl*() against Windows 2008.
commit8db5eccaf25ae3d6c047ad642370ed154b0fddc7
authorStefan Metzmacher <metze@samba.org>
Mon, 28 Oct 2013 14:43:03 +0000 (28 15:43 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 6 Nov 2013 11:33:27 +0000 (6 12:33 +0100)
tree581fa6cf6a7981fdeb52e01c432ccd3149fc3610
parent67840df91d7370bd5c642635aa7731ccb343fd7b
libcli/smb: fix smb2cli_ioctl*() against Windows 2008.

The subsections of [MS-SMB2] "3.2.5.14 Receiving an SMB2 IOCTL Response"
say the client should ignore the InputOffset/InputCount.

We do that only if we ask for max_input_length = 0.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=10232

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Oct 31 01:16:10 CET 2013 on sn-devel-104
(cherry picked from commit 127fc670a39d15eaa3869045fca0287ba7df9efa)
libcli/smb/smb2cli_ioctl.c