From: James Ding Date: Thu, 4 Sep 2008 22:13:12 +0000 (-0700) Subject: Fix winbindd crash bug with trusted domains. Bug #5736 X-Git-Url: http://git.samba.org/samba.git/?p=ira%2Fwip.git;a=commitdiff_plain;h=d4f5caa3d38b5afc1e8b3d0e0c6d7d68a152fe0a Fix winbindd crash bug with trusted domains. Bug #5736 --- diff --git a/source/winbindd/winbindd_ads.c b/source/winbindd/winbindd_ads.c index 94e3bad7b23..c7f730e3974 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