From 115a82a07f1708d535bac05b45111fadf1d8b4a9 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 21 Apr 2010 17:04:49 +0200 Subject: [PATCH] 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(). --- source3/winbindd/winbindd_util.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/source3/winbindd/winbindd_util.c b/source3/winbindd/winbindd_util.c index 1760382..15a3575 100644 --- a/source3/winbindd/winbindd_util.c +++ b/source3/winbindd/winbindd_util.c @@ -422,6 +422,9 @@ static void rescan_forest_root_trusts( void ) dom_list[i].dns_name, &cache_methods, &dom_list[i].sid ); + if (d != NULL) { + setup_domain_child(d, &d->child); + } } if (d == NULL) { @@ -491,6 +494,9 @@ static void rescan_forest_trusts( void ) dom_list[i].dns_name, &cache_methods, &dom_list[i].sid ); + if (d != NULL) { + setup_domain_child(d, &d->child); + } } if (d == NULL) { -- 1.6.5.7