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-cluster-mutex: Ensure that the configured command is not empty
[samba.git]
/
ctdb
/
server
/
ctdb_cluster_mutex.c
diff --git
a/ctdb/server/ctdb_cluster_mutex.c
b/ctdb/server/ctdb_cluster_mutex.c
index 2e3cb8112ad6cea6b22a356c59c8fe9a6c976552..719b5c14f7a10c5adc5967e7e8ba9559767e7ae8 100644
(file)
--- a/
ctdb/server/ctdb_cluster_mutex.c
+++ b/
ctdb/server/ctdb_cluster_mutex.c
@@
-176,6
+176,10
@@
static bool cluster_mutex_helper_args_cmd(TALLOC_CTX *mem_ctx,
return false;
}
n = strv_count(strv);
+ if (n == 0) {
+ D_ERR("Mutex helper command is empty \"%s\"\n", argstring);
+ return false;
+ }
/* Extra slot for NULL */
args = talloc_array(mem_ctx, char *, n + 1);