From 6e8fb85b7d35c8f52a2058e706113853bca00551 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 19 Nov 2015 17:00:49 +0100 Subject: [PATCH] winbind: Don't crash on invalid idmap configs We should not leave NULL in idmap_domains[]. This will lead to NULL ptr deferences in idmap_find_domain(). Bug: https://bugzilla.samba.org/show_bug.cgi?id=11612 Signed-off-by: Volker Lendecke --- source3/winbindd/idmap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/winbindd/idmap.c b/source3/winbindd/idmap.c index 8de8990..4012e70 100644 --- a/source3/winbindd/idmap.c +++ b/source3/winbindd/idmap.c @@ -146,6 +146,7 @@ static bool idmap_found_domain_backend( if (dom == NULL) { DBG_NOTICE("Could not init idmap domain %s\n", domname); + return false; } tmp = talloc_realloc(idmap_domains, idmap_domains, -- 1.9.1