s3/libsmb: Avoid potential smbpanic calling parse_user_quota_list.
authorNoel Power <noel.power@suse.com>
Tue, 28 Feb 2017 15:04:16 +0000 (15:04 +0000)
committerNoel Power <npower@samba.org>
Tue, 31 Jul 2018 14:56:24 +0000 (16:56 +0200)
commitb93408246252fe1e3a72de33bcaa8ebb5fe7a1d2
treeae1b89d75813eeb29d1042adbe16afc96f354161
parent2bfb9b4081fff1ef816bbfdd3ebb989d1c56ec1b
s3/libsmb: Avoid potential smbpanic calling parse_user_quota_list.

Calling parse_user_quota_list with a NULL buffer can cause a panic, while
this shouldn't happen, I managed to trigger this with an early implementation
of SMB2 quota support in smbd which didn't pass back NT_STATUS_NO_MORE_ENTRIES
when handling a SMB2_0_INFO_QUOTA GETINFO message.
OTHOH the Windows client handled the same situation gracefully.

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

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/cli_smb2_fnum.c