summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbindd_util.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/nsswitch/winbindd_util.c b/source3/nsswitch/winbindd_util.c
index e274c78220..06804b3b43 100644
--- a/source3/nsswitch/winbindd_util.c
+++ b/source3/nsswitch/winbindd_util.c
@@ -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)));