summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2010-11-18 08:01:15 -0500
committerSimo Sorce <idra@samba.org>2010-11-18 14:02:34 +0000
commit0b3180bbf5933943cf0c5b0e9d47da33cf4ff99c (patch)
tree91597784d64252812c5e5b63b4f08355be3fda9d /source4/lib/ldb
parent47784a14708827a0272b638c6ab088d74b392908 (diff)
downloadsamba-0b3180bbf5933943cf0c5b0e9d47da33cf4ff99c.tar.gz
samba-0b3180bbf5933943cf0c5b0e9d47da33cf4ff99c.tar.bz2
samba-0b3180bbf5933943cf0c5b0e9d47da33cf4ff99c.zip
ldb: error out when modules are not found
We shouldn't proceed without all required modules, it could cause damage to the ldb if operations are performed w/o the needed modules. Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Thu Nov 18 14:02:34 UTC 2010 on sn-devel-104
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/common/ldb_modules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/common/ldb_modules.c b/source4/lib/ldb/common/ldb_modules.c
index 123d218667..e330137140 100644
--- a/source4/lib/ldb/common/ldb_modules.c
+++ b/source4/lib/ldb/common/ldb_modules.c
@@ -312,7 +312,7 @@ int ldb_module_load_list(struct ldb_context *ldb, const char **module_list,
if (ops == NULL) {
ldb_debug(ldb, LDB_DEBUG_FATAL, "WARNING: Module [%s] not found - do you need to set LDB_MODULES_PATH?",
module_list[i]);
- continue;
+ return LDB_ERR_OPERATIONS_ERROR;
}
current = talloc_zero(ldb, struct ldb_module);