From: Volker Lendecke Date: Wed, 14 Jan 2026 09:12:22 +0000 (+0100) Subject: smbd: Add a NULL check for get quota command output X-Git-Tag: tdb-1.4.15~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=431ab4cfa34893eb8e143693da60b9138d534937;p=thirdparty%2Fsamba.git smbd: Add a NULL check for get quota command output Signed-off-by: Volker Lendecke Reviewed-by: Anoop C S --- diff --git a/source3/lib/sysquotas.c b/source3/lib/sysquotas.c index 5f8d06634d6..276513b2a78 100644 --- a/source3/lib/sysquotas.c +++ b/source3/lib/sysquotas.c @@ -294,8 +294,9 @@ static int command_get_quota(const char *path, enum SMB_QUOTA_TYPE qtype, unid_t lines = file_lines_ploadv(talloc_tos(), argl, NULL); TALLOC_FREE(argl); - if (lines == NULL) { + if ((lines == NULL) || (lines[0] == NULL)) { DBG_ERR("get_quota_command failed!\n"); + TALLOC_FREE(lines); return -1; }