r20772: fix segfault caused by ldb_set_default_dns() from init_context hook of the...
authorStefan Metzmacher <metze@samba.org>
Sun, 14 Jan 2007 17:45:55 +0000 (17:45 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:40:51 +0000 (14:40 -0500)
metze

source/lib/ldb/modules/ldb_map_outbound.c

index a9bfd8d113e2d9e4c16ed925c0d511d2643ca77f..615cdc40ca44eea44cdae7a453ffc0f0da334818 100644 (file)
@@ -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);