1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

Fix winbindd crash bug with trusted domains. Bug #5736

This commit is contained in:
James Ding 2008-09-04 15:13:12 -07:00 committed by Jeremy Allison
parent 0311d17197
commit d4f5caa3d3

View File

@ -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