From 7057be5ec1f397de47368b809ecd03111d6caceb Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 14 Jan 2007 17:45:55 +0000 Subject: r20772: fix segfault caused by ldb_set_default_dns() from init_context hook of the root dse module metze (This used to be commit a201d3fc4ddfa336e2a98412d05eac4e51d01cea) --- source4/lib/ldb/modules/ldb_map_outbound.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source4/lib/ldb/modules') diff --git a/source4/lib/ldb/modules/ldb_map_outbound.c b/source4/lib/ldb/modules/ldb_map_outbound.c index a9bfd8d113..615cdc40ca 100644 --- a/source4/lib/ldb/modules/ldb_map_outbound.c +++ b/source4/lib/ldb/modules/ldb_map_outbound.c @@ -1173,6 +1173,9 @@ int map_search(struct ldb_module *module, struct ldb_request *req) const char *wildcard[] = { "*", NULL }; const char * const *attrs; + if (!module->private_data) /* if we're not yet initialized, go to the next module */ + return ldb_next_request(module, req); + /* Do not manipulate our control entries */ if (ldb_dn_is_special(req->op.search.base)) return ldb_next_request(module, req); -- cgit