From e67b0cf603483aefe823ab3c86b02db27c48b6eb Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 24 May 2010 14:55:17 +1000 Subject: 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 --- source3/winbindd/idmap.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3') diff --git a/source3/winbindd/idmap.c b/source3/winbindd/idmap.c index 4aa229cd66..2294f396c4 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; } -- cgit