s3: winbindd: Move calling setup_domain_child() into add_trusted_domain().
commitca931e460460ffe46735f98b31db47220772d566
authorJeremy Allison <jra@samba.org>
Mon, 6 Jan 2014 23:22:59 +0000 (6 15:22 -0800)
committerJeremy Allison <jra@samba.org>
Wed, 8 Jan 2014 19:46:55 +0000 (8 20:46 +0100)
tree81f9e5f8ad86775da75bffc77e2d312ac70eefc0
parentcfa6a36467f5679a88e49419e8af32b724c242bd
s3: winbindd: Move calling setup_domain_child() into add_trusted_domain().

Ensure it only gets called when a new domain is allocated
and added to the list.

This should fix problems with the previous logic where
setup_domain_child() was called in places where an existing
domain was returned.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=10358

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Jan  8 20:46:55 CET 2014 on sn-devel-104
source3/winbindd/winbindd_util.c