diff options
author | Uri Simchoni <uri@samba.org> | 2016-03-29 23:30:23 +0300 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2016-03-31 20:30:10 +0200 |
commit | fcf6527202be9b1a913ebb93ef3ed1d01a0c26fa (patch) | |
tree | 55264f9ad8e298865b5ce98ea3a8cb94e74fef8c /source3/smbd/nttrans.c | |
parent | d378c85f7a51936e78908c2e26552b95e87302c8 (diff) | |
download | samba-fcf6527202be9b1a913ebb93ef3ed1d01a0c26fa.tar.gz |
nt-quotas: vfs_get_ntquota() return NTSTATUS
Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd/nttrans.c')
-rw-r--r-- | source3/smbd/nttrans.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index 3a2c35fe7b1..232cc687b50 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -2509,7 +2509,9 @@ static void call_nt_transact_get_user_quota(connection_struct *conn, return; } - if (vfs_get_ntquota(fsp, SMB_USER_QUOTA_TYPE, &sid, &qt)!=0) { + nt_status = vfs_get_ntquota(fsp, SMB_USER_QUOTA_TYPE, + &sid, &qt); + if (!NT_STATUS_IS_OK(nt_status)) { ZERO_STRUCT(qt); /* * we have to return zero's in all fields |