From c82fd3ed30ef2c804b6370d9d2ff1e1a6d2797f5 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 file changed, 6 insertions(+) diff --git a/source3/winbindd/winbindd_util.c b/source3/winbindd/winbindd_util.c index 84522ea0a7e..a13df1f1579 100644 --- a/source3/winbindd/winbindd_util.c +++ b/source3/winbindd/winbindd_util.c @@ -428,6 +428,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) { @@ -497,6 +500,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) { -- 2.11.4.GIT