summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-01-08 00:55:13 +0000
committerAndrew Bartlett <abartlet@samba.org>2004-01-08 00:55:13 +0000
commit703f101136b8e9bbc16f57a37cd9d9d739606a84 (patch)
treef3f556f952d1262cec81fc50f1f677ed7741cdf6
parent6a9bbd1da3bb961d24e74348fa0b68574022855f (diff)
downloadsamba-703f101136b8e9bbc16f57a37cd9d9d739606a84.tar.gz
samba-703f101136b8e9bbc16f57a37cd9d9d739606a84.tar.xz
samba-703f101136b8e9bbc16f57a37cd9d9d739606a84.zip
The correct test for 'is our primary domain' is domain->primary
-rw-r--r--source/nsswitch/winbindd_misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/nsswitch/winbindd_misc.c b/source/nsswitch/winbindd_misc.c
index 08b5be827d1..d1e5c8cb49c 100644
--- a/source/nsswitch/winbindd_misc.c
+++ b/source/nsswitch/winbindd_misc.c
@@ -132,7 +132,7 @@ enum winbindd_result winbindd_list_trusted_domains(struct winbindd_cli_state
/* Skip own domain */
- if (strequal(domain->name, lp_workgroup())) continue;
+ if (domain->primary) continue;
/* Add domain to list */