diff options
author | Andrew Bartlett <abartlet@samba.org> | 2009-10-12 20:11:03 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-10-12 23:33:22 +1100 |
commit | a37efaf9229e8b6ff3da8caaa5cb0f6ce8670cee (patch) | |
tree | 274570778e96f2a599c1c7505ca3e1dd19de7969 /source4 | |
parent | 8def289c8e19fc516ddcf67a117a8e8250baf1c2 (diff) | |
download | samba-a37efaf9229e8b6ff3da8caaa5cb0f6ce8670cee.tar.gz samba-a37efaf9229e8b6ff3da8caaa5cb0f6ce8670cee.tar.bz2 samba-a37efaf9229e8b6ff3da8caaa5cb0f6ce8670cee.zip |
s4:ldb Allow a NULL module list
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/ldb/common/ldb_modules.c | 2 |
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 135ed8c05f..69b8ed0bf4 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; |