s3: Fix a winbind crash when scanning trusts
authorVolker Lendecke <vl@samba.org>
Wed, 21 Apr 2010 15:04:49 +0000 (17:04 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 17 May 2010 07:50:15 +0000 (09:50 +0200)
commit8e9e6ed2b2ea06106b99541b404d046a22fa75ee
tree23259572a27986c01e12dbbea083483a629e75bb
parentf3868dea15cf8c28ac24b774ff07dbe19f326145
s3: Fix a winbind crash when scanning trusts

add_trusted_domain() for a new domain always needs to be followed by a
setup_domain_child(). This was not always done, in particular not when walking
to the forest root for additional trusts.

This is a minimal patch, we need to fix add_trusted_domain().

Fix bug #7389 (Fix a winbind crash when scanning trusted domains).
(cherry picked from commit a356b04933e65aed9a6c38611bcbfce3b297d092)
source3/winbindd/winbindd_util.c