SMB_INFO_ALLOCATION: return with UINT32_MAX rather than cutting at 4 bytes
authorPeter Somogyi <psomogyi@hu.ibm.com>
Mon, 15 May 2017 08:21:01 +0000 (10:21 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 17 May 2017 03:49:46 +0000 (05:49 +0200)
commit6fbff7184e116c9afcbcd62a479b692154767b60
treecb3f4ae8ac79c152962930aec0466058ce83d5ac
parentd02d4b5bc1a2f370b590f728df323cf08bd6d9f6
SMB_INFO_ALLOCATION: return with UINT32_MAX rather than cutting at 4 bytes

An AIX cifs client queries SMB_INFO_ALLOCATION that has only 4 bytes to report
dfree and dsize. Return the max instead of random unexpeced numbers.

Signed-off-by: Peter Somogyi <psomogyi@hu.ibm.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed May 17 05:49:46 CEST 2017 on sn-devel-144
source3/smbd/trans2.c