summaryrefslogtreecommitdiff
path: root/source3/winbindd/idmap.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-05-24 14:55:17 +1000
committerMichael Adam <obnox@samba.org>2010-06-01 10:33:13 +0200
commite67b0cf603483aefe823ab3c86b02db27c48b6eb (patch)
treef97fa8017bb41a28807ff414e17055e24df13838 /source3/winbindd/idmap.c
parentb05c18cff275650b4caa74db6ba82975df3abe9d (diff)
downloadsamba-e67b0cf603483aefe823ab3c86b02db27c48b6eb.tar.gz
samba-e67b0cf603483aefe823ab3c86b02db27c48b6eb.tar.bz2
samba-e67b0cf603483aefe823ab3c86b02db27c48b6eb.zip
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 <obnox@samba.org>
Diffstat (limited to 'source3/winbindd/idmap.c')
-rw-r--r--source3/winbindd/idmap.c4
1 files changed, 4 insertions, 0 deletions
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;
}