From 3aaaef40d570913c2bd156c91e1ef450d840a26b Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 21 Mar 2014 00:03:02 +0100 Subject: autorid: initialize: link config to commonconfig as soon as it is allocated. Signed-off-by: Michael Adam Reviewed-by: Jeremy Allison --- source3/winbindd/idmap_autorid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/winbindd/idmap_autorid.c b/source3/winbindd/idmap_autorid.c index b3572a1148..e9b5d2ce3c 100644 --- a/source3/winbindd/idmap_autorid.c +++ b/source3/winbindd/idmap_autorid.c @@ -611,6 +611,7 @@ static NTSTATUS idmap_autorid_initialize(struct idmap_domain *dom) DEBUG(0, ("Out of memory!\n")); return NT_STATUS_NO_MEMORY; } + commonconfig->private_data = config; status = idmap_autorid_db_init(state_path("autorid.tdb"), NULL, /* TALLOC_CTX */ @@ -649,7 +650,6 @@ static NTSTATUS idmap_autorid_initialize(struct idmap_domain *dom) "ignore builtin", false); /* fill the TDB common configuration */ - commonconfig->private_data = config; commonconfig->db = autorid_db; commonconfig->max_id = config->rangesize -1; -- cgit