summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-10-10 09:12:54 +1100
committerAndrew Bartlett <abartlet@samba.org>2009-10-12 16:51:02 +1100
commit93ac2cdb5490c0f6e4aa7c70d1ac88c03fb9fe84 (patch)
treeefcfe8d639189b405d9640e022427319cfaecc17 /source4/lib/ldb
parentc9f70fc3c7a6a44696a64ca40eca6e1995db35b9 (diff)
downloadsamba-93ac2cdb5490c0f6e4aa7c70d1ac88c03fb9fe84.tar.gz
samba-93ac2cdb5490c0f6e4aa7c70d1ac88c03fb9fe84.tar.bz2
samba-93ac2cdb5490c0f6e4aa7c70d1ac88c03fb9fe84.zip
s4:ldb Allow a module string of ""
(We may have no modules set) Andrew Bartlett
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/common/ldb_modules.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/lib/ldb/common/ldb_modules.c b/source4/lib/ldb/common/ldb_modules.c
index ea29a09a2a..135ed8c05f 100644
--- a/source4/lib/ldb/common/ldb_modules.c
+++ b/source4/lib/ldb/common/ldb_modules.c
@@ -96,6 +96,12 @@ const char **ldb_modules_list_from_string(struct ldb_context *ldb, TALLOC_CTX *m
}
talloc_steal(modules, modstr);
+ if (modstr[0] == '\0') {
+ modules[0] = NULL;
+ m = (const char **)modules;
+ return m;
+ }
+
i = 0;
/* The str*r*chr walks backwards: This is how we get the inverse order mentioned above */
while ((p = strrchr(modstr, ',')) != NULL) {