git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ctdb-common: Fix empty value handling in conf
[samba.git]
/
ctdb
/
common
/
conf.c
diff --git
a/ctdb/common/conf.c
b/ctdb/common/conf.c
index 3d668de3122ac4b71bcc70a2add5e8136e711dfa..e849ff4322f59ad91cde31c230a2bb856d6fec8f 100644
(file)
--- a/
ctdb/common/conf.c
+++ b/
ctdb/common/conf.c
@@
-1130,6
+1130,14
@@
static bool conf_load_option(const char *name,
}
}
+ if (strlen(value_str) == 0) {
+ D_ERR("conf: empty value [%s] -> \"%s\"\n",
+ state->s->name,
+ name);
+ state->err = EINVAL;
+ return true;
+ }
+
tmp_ctx = talloc_new(state->conf);
if (tmp_ctx == NULL) {
state->err = ENOMEM;