s4:winbind: Add a missing no memory check
authorAndreas Schneider <asn@samba.org>
Mon, 11 Jan 2021 15:27:48 +0000 (16:27 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 28 Apr 2021 03:43:34 +0000 (03:43 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/winbind/winbindd.c

index a3d536901bd1d4509ff3c199bede5c0abe50bf9a..0811d13fa1a6678b8ac5d1e55fc171e5b829d620 100644 (file)
@@ -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 */