ntquotas: support "freeing" an empty quota list
authorUri Simchoni <uri@samba.org>
Sun, 18 Sep 2016 08:09:54 +0000 (11:09 +0300)
committerJeremy Allison <jra@samba.org>
Tue, 4 Oct 2016 00:00:22 +0000 (02:00 +0200)
commitdd8a0578d8c9f562a4f13a90f4fe51f66058dd02
treeed7ecf90d9b7864bfe3d9a5b1bec4eddab299011
parent610c26d74c1314142981e5cc31a0706a4a99766f
ntquotas: support "freeing" an empty quota list

This avoids dereferencing a null pointer if there's
an attempt to free an empty list.

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

Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/cliquota.c
source3/smbd/ntquotas.c