From 0b8433cf87f7e106b3ff1695801ab5ce723a27e0 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 11 Jan 2021 16:27:48 +0100 Subject: [PATCH] s4:winbind: Add a missing no memory check Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- source4/winbind/winbindd.c | 3 +++ 1 file changed, 3 insertions(+) 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 */ -- 2.34.1