summaryrefslogtreecommitdiffstats
path: root/source/nsswitch/winbindd_misc.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-11-13 11:53:18 +0000
committerVolker Lendecke <vlendec@samba.org>2005-11-13 11:53:18 +0000
commitdafe5869b2443bfdc42d5be168d2edf608424c9e (patch)
treed2353bd32c72f922b27d5210390dfb38dc0ec314 /source/nsswitch/winbindd_misc.c
parenta42b388aa594d69f3d6b0523a6ac13beebb98e17 (diff)
downloadsamba-dafe5869b2443bfdc42d5be168d2edf608424c9e.tar.gz
samba-dafe5869b2443bfdc42d5be168d2edf608424c9e.tar.xz
samba-dafe5869b2443bfdc42d5be168d2edf608424c9e.zip
r11707: alt_names[i] might be NULL for i>0 also...
Volker
Diffstat (limited to 'source/nsswitch/winbindd_misc.c')
-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