From a13e5579c9ee2910e3b0408562d31ed3ff1db47a Mon Sep 17 00:00:00 2001 From: James Ding Date: Thu, 4 Sep 2008 15:17:18 -0700 Subject: [PATCH] Fix winbindd crash bug with trusted domains. Bug #5736 (cherry picked from commit 2d84b9a1024f68657f75aa7e0c4091b8c7afd194) --- source/winbindd/winbindd_ads.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/winbindd/winbindd_ads.c b/source/winbindd/winbindd_ads.c index 5b651fa1cfe..c588726e302 100644 --- a/source/winbindd/winbindd_ads.c +++ b/source/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 -- 2.11.4.GIT