From: James Ding Date: Thu, 4 Sep 2008 22:17:18 +0000 (-0700) Subject: Fix winbindd crash bug with trusted domains. Bug #5736 X-Git-Tag: release-3-2-4~57 X-Git-Url: http://git.samba.org/samba.git/?p=tprouty%2Fsamba.git;a=commitdiff_plain;h=a13e5579c9ee2910e3b0408562d31ed3ff1db47a;ds=sidebyside Fix winbindd crash bug with trusted domains. Bug #5736 (cherry picked from commit 2d84b9a1024f68657f75aa7e0c4091b8c7afd194) --- diff --git a/source/winbindd/winbindd_ads.c b/source/winbindd/winbindd_ads.c index 5b651fa1cf..c588726e30 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