summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-11-13 11:53:18 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:24 -0500
commitc8b67c2448b09b3386a5b35ed279c134d7a3ba32 (patch)
treed2353bd32c72f922b27d5210390dfb38dc0ec314 /source
parent62d01ce7e6c14971084c208ab61f379cb172cb22 (diff)
downloadsamba-c8b67c2448b09b3386a5b35ed279c134d7a3ba32.tar.gz
samba-c8b67c2448b09b3386a5b35ed279c134d7a3ba32.tar.xz
samba-c8b67c2448b09b3386a5b35ed279c134d7a3ba32.zip
r11707: alt_names[i] might be NULL for i>0 also...
Volker
Diffstat (limited to 'source')
-rw-r--r--source/nsswitch/winbindd_misc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/nsswitch/winbindd_misc.c b/source/nsswitch/winbindd_misc.c
index 4afc525b301..ec8bacc4745 100644
--- a/source/nsswitch/winbindd_misc.c
+++ b/source/nsswitch/winbindd_misc.c
@@ -134,7 +134,8 @@ enum winbindd_result winbindd_dual_list_trusted_domains(struct winbindd_domain *
for (i=1; i<num_domains; i++)
extra_data = talloc_asprintf(state->mem_ctx, "%s\n%s\\%s\\%s",
extra_data,
- names[i], alt_names[i],
+ names[i],
+ alt_names[i] ? alt_names[i] : names[i],
sid_string_static(&sids[i]));
/* This is a bit excessive, but the extra data sooner or later will be