summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-01-14 17:45:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:40:51 -0500
commit7057be5ec1f397de47368b809ecd03111d6caceb (patch)
treeaf2ea061d043404a4501f9460987fd86cae8a550 /source4/lib/ldb
parentdd4b91f2f49d5b3908f3659d44fd65d5b1216043 (diff)
downloadsamba-7057be5ec1f397de47368b809ecd03111d6caceb.tar.gz
samba-7057be5ec1f397de47368b809ecd03111d6caceb.tar.bz2
samba-7057be5ec1f397de47368b809ecd03111d6caceb.zip
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)
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/modules/ldb_map_outbound.c3
1 files changed, 3 insertions, 0 deletions
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);