diff options
author | James Ding <ding_cc@hotmail.com> | 2008-09-04 15:17:18 -0700 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2008-09-08 11:24:39 +0200 |
commit | a13e5579c9ee2910e3b0408562d31ed3ff1db47a (patch) | |
tree | 5bb13f50a128621776616a8906bb7c95dd918132 /source/winbindd | |
parent | 0b9b4c5e4b920a5e2ac503f780839ac331c3990d (diff) | |
download | samba-a13e5579c9ee2910e3b0408562d31ed3ff1db47a.tar.gz samba-a13e5579c9ee2910e3b0408562d31ed3ff1db47a.tar.xz samba-a13e5579c9ee2910e3b0408562d31ed3ff1db47a.zip |
Fix winbindd crash bug with trusted domains. Bug #5736
(cherry picked from commit 2d84b9a1024f68657f75aa7e0c4091b8c7afd194)
Diffstat (limited to 'source/winbindd')
-rw-r--r-- | source/winbindd/winbindd_ads.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 |