From: Uri Simchoni Date: Wed, 27 Apr 2016 20:21:20 +0000 (+0300) Subject: nt-quotas: fixup failure case for TRANSACT_GET_USER_QUOTA_FOR_SID X-Git-Tag: talloc-2.1.7~63 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2c03d004f8ef36fb10e879580999ebb70d440d43;p=thirdparty%2Fsamba.git nt-quotas: fixup failure case for TRANSACT_GET_USER_QUOTA_FOR_SID Fixup commit 0e01ed06a40146d145ffe439a65fb9035ab7b1cf Add a missing return statement after generating error response to the request. Signed-off-by: Uri Simchoni Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index fa3f74c9302..05f3cae10cd 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -2513,6 +2513,7 @@ static void call_nt_transact_get_user_quota(connection_struct *conn, &sid, &qt); if (!NT_STATUS_IS_OK(nt_status)) { reply_nterror(req, nt_status); + return; } /* Realloc the size of parameters and data we will return */