From: Andrew Bartlett Date: Mon, 12 Oct 2009 09:11:03 +0000 (+1100) Subject: s4:ldb Allow a NULL module list X-Git-Tag: talloc-2.0.1~41^2~7 X-Git-Url: http://git.samba.org/samba.git/?p=ira%2Fwip.git;a=commitdiff_plain;h=a37efaf9229e8b6ff3da8caaa5cb0f6ce8670cee s4:ldb Allow a NULL module list --- diff --git a/source4/lib/ldb/common/ldb_modules.c b/source4/lib/ldb/common/ldb_modules.c index 135ed8c05f1..69b8ed0bf41 100644 --- a/source4/lib/ldb/common/ldb_modules.c +++ b/source4/lib/ldb/common/ldb_modules.c @@ -337,7 +337,7 @@ int ldb_load_modules_list(struct ldb_context *ldb, const char **module_list, str module = backend; - for (i = 0; module_list[i] != NULL; i++) { + for (i = 0; module_list && module_list[i] != NULL; i++) { struct ldb_module *current; const struct ldb_module_ops *ops;