From: Andreas Schneider Date: Mon, 11 Jan 2021 15:27:48 +0000 (+0100) Subject: s4:winbind: Add a missing no memory check X-Git-Tag: tevent-0.11.0~1000 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0b8433cf87f7e106b3ff1695801ab5ce723a27e0;p=thirdparty%2Fsamba.git s4:winbind: Add a missing no memory check Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- diff --git a/source4/winbind/winbindd.c b/source4/winbind/winbindd.c index a3d536901bd..0811d13fa1a 100644 --- a/source4/winbind/winbindd.c +++ b/source4/winbind/winbindd.c @@ -63,6 +63,9 @@ static NTSTATUS winbindd_task_init(struct task_server *task) task_server_set_title(task, "task[winbindd_parent]"); winbindd_path = talloc_asprintf(task, "%s/winbindd", dyn_SBINDIR); + if (winbindd_path == NULL) { + return NT_STATUS_NO_MEMORY; + } winbindd_cmd[0] = winbindd_path; /* start it as a child process */