summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Ding <ding_cc@hotmail.com>2008-09-04 15:13:12 -0700
committerJeremy Allison <jra@samba.org>2008-09-04 15:13:12 -0700
commit72df99975966ddccc87f80f3f6b735713f882a18 (patch)
tree03af908382b28c9256e50063cee94233e300948e
parent14a7860681124ee75e966bd1e86f04f206fcec4c (diff)
downloadsamba-72df99975966ddccc87f80f3f6b735713f882a18.tar.gz
samba-72df99975966ddccc87f80f3f6b735713f882a18.tar.bz2
samba-72df99975966ddccc87f80f3f6b735713f882a18.zip
Fix winbindd crash bug with trusted domains. Bug #5736
(This used to be commit d4f5caa3d38b5afc1e8b3d0e0c6d7d68a152fe0a)
-rw-r--r--source3/winbindd/winbindd_ads.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_ads.c b/source3/winbindd/winbindd_ads.c
index 94e3bad7b2..c7f730e397 100644
--- a/source3/winbindd/winbindd_ads.c
+++ b/source3/winbindd/winbindd_ads.c
@@ -1225,6 +1225,8 @@ static NTSTATUS trusted_domains(struct winbindd_domain *domain,
for (i = 0; i < trusts.count; i++) {
struct winbindd_domain d;
+ ZERO_STRUCT(d);
+
/* drop external trusts if this is not our primary
domain. This means that the returned number of
domains may be less that the ones actually trusted