libcli/smb: fix BUFFER_OVERFLOW handling in tstream_smbXcli_np
authorStefan Metzmacher <metze@samba.org>
Fri, 27 Nov 2015 17:19:38 +0000 (18:19 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 1 Dec 2015 02:42:51 +0000 (03:42 +0100)
commit3bbd8d3614af641535ab0925303ad07c03c4e094
tree854cceab02dd847cd1891e7c5577d0baa4878b70
parent0e8d33fb5ffd6fdb0e503c5ff59e3635bbf10041
libcli/smb: fix BUFFER_OVERFLOW handling in tstream_smbXcli_np

The special error is not NT_STATUS_BUFFER_TOO_SMALL, but STATUS_BUFFER_OVERFLOW.

Tested using TSTREAM_SMBXCLI_NP_MAX_BUF_SIZE == 20 and running
the following commands against a Windows 2012R2 server:

bin/smbtorture ncacn_np:SERVER[] rpc.lsa-getuser
bin/smbtorture ncacn_np:SERVER[smb2] rpc.lsa-getuser

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

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): Tue Dec  1 03:42:52 CET 2015 on sn-devel-104
libcli/smb/tstream_smbXcli_np.c