git.samba.org
/
metze
/
samba
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ntquotas: support "freeing" an empty quota list
[metze/samba/wip.git]
/
source3
/
smbd
/
ntquotas.c
diff --git
a/source3/smbd/ntquotas.c
b/source3/smbd/ntquotas.c
index 9b2e39a72bf8e1e0d702f693202fcd5268388fb9..93f4a2ae12fe905cd886ffdb4480d6ef072648e9 100644
(file)
--- a/
source3/smbd/ntquotas.c
+++ b/
source3/smbd/ntquotas.c
@@
-231,8
+231,7
@@
int vfs_get_user_ntquota_list(files_struct *fsp, SMB_NTQUOTA_LIST **qt_list)
static int quota_handle_destructor(SMB_NTQUOTA_HANDLE *handle)
{
- if (handle->quota_list)
- free_ntquota_list(&handle->quota_list);
+ free_ntquota_list(&handle->quota_list);
return 0;
}