From: Andrew Bartlett Date: Mon, 24 May 2010 04:55:17 +0000 (+1000) Subject: s3:winbind Ensure we always init idmap_passdb before we use it X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=e67b0cf603483aefe823ab3c86b02db27c48b6eb;p=abartlet%2Fsamba.git%2F.git s3:winbind Ensure we always init idmap_passdb before we use it It seems that it is possible for idmap_init_passdb_domain() to be run before idmap_init_domain(), so ensure we run the static init functions in both. Andrew Bartlett Signed-off-by: Michael Adam --- diff --git a/source3/winbindd/idmap.c b/source3/winbindd/idmap.c index 4aa229cd662..2294f396c4a 100644 --- a/source3/winbindd/idmap.c +++ b/source3/winbindd/idmap.c @@ -428,6 +428,10 @@ fail: static struct idmap_domain *idmap_init_passdb_domain(TALLOC_CTX *mem_ctx) { + DEBUG(10, ("idmap_init_passdb_domain: calling static_init_idmap\n")); + + static_init_idmap; + if (passdb_idmap_domain != NULL) { return passdb_idmap_domain; }