mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
prevent a segv when a trusted domain is unavailable at startup
(This used to be commit d5b5d3f840
)
This commit is contained in:
parent
e1aed4f49c
commit
b9becd752c
@ -159,9 +159,8 @@ BOOL init_domain_list(void)
|
||||
int i;
|
||||
for(i = 0; i < num_domains; i++) {
|
||||
domain = add_trusted_domain(names[i], &cache_methods);
|
||||
if (domain) {
|
||||
sid_copy(&domain->sid, &dom_sids[i]);
|
||||
}
|
||||
if (!domain) continue;
|
||||
sid_copy(&domain->sid, &dom_sids[i]);
|
||||
DEBUG(1,("Added domain %s (%s)\n",
|
||||
domain->name,
|
||||
sid_string_static(&domain->sid)));
|
||||
|
Loading…
Reference in New Issue
Block a user