cliquota: refactor and cleanup listing of user quotas
authorUri Simchoni <uri@samba.org>
Sun, 18 Sep 2016 08:13:16 +0000 (11:13 +0300)
committerJeremy Allison <jra@samba.org>
Tue, 4 Oct 2016 00:00:23 +0000 (02:00 +0200)
commit621d7b41d9e58aeaaae98a22ef453c01a66a082d
tree5a2bd5235f3b8928f4b3173e92f8ea92c6fa0494
parentb6375ce54934ea61eda0af03e354f08b6ec9494e
cliquota: refactor and cleanup listing of user quotas

Split cli_list_user_quota into an outer loop function and
an inner loop function.

This simplifies the code somewhat, paves the way for SMB2
support, and fixes a couple of memory leaks in error
conditions. No functional changes.

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