1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

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 <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Nov 19 20:16:44 CET 2015 on sn-devel-104
This commit is contained in:
Volker Lendecke 2015-11-19 17:00:49 +01:00
parent 5036c6e744
commit 7e9aaecec5

View File

@ -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,