From 0b3180bbf5933943cf0c5b0e9d47da33cf4ff99c Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 18 Nov 2010 08:01:15 -0500 Subject: 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 Autobuild-Date: Thu Nov 18 14:02:34 UTC 2010 on sn-devel-104 --- source4/lib/ldb/common/ldb_modules.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/lib') 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); -- cgit