s3: winbindd: Move calling setup_domain_child() into add_trusted_domain().
commit9f00bda1dbddf8c79d32c1f05f52bb0ff639c284
authorJeremy Allison <jra@samba.org>
Mon, 6 Jan 2014 23:22:59 +0000 (6 15:22 -0800)
committerKarolin Seeger <kseeger@samba.org>
Fri, 10 Jan 2014 10:42:44 +0000 (10 11:42 +0100)
tree5a2de3322b4a4819c43638de451e59519b785f06
parent187d2ef789fc5316d4b9b117c06a19b4bcb87fda
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

(cherry picked from commit ca931e460460ffe46735f98b31db47220772d566)

Autobuild-User(v4-1-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-1-test): Fri Jan 10 11:42:44 CET 2014 on sn-devel-104
source3/winbindd/winbindd_util.c