libcli/smb: fix smb2cli_ioctl*() against Windows 2008.
authorStefan Metzmacher <metze@samba.org>
Mon, 28 Oct 2013 14:43:03 +0000 (15:43 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 31 Oct 2013 00:16:09 +0000 (01:16 +0100)
commit127fc670a39d15eaa3869045fca0287ba7df9efa
treeb743a5e7bedaf5dcdbe98d258693785d9308dba9
parent71dc7e593ef17db7875d3d9a2e42ae588679392e
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
libcli/smb/smb2cli_ioctl.c