mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
ctdb: fix crash on "ctdb scriptstatus --events=releaseip"
Martin accidentally typed this instead of "ctdb scriptstatus releaseip" and it crashes. CQ:S1018859 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (This used to be ctdb commit 70877b2e7f8fd0d46899bbeca2c6caad6e6e6820)
This commit is contained in:
parent
145b09c9a8
commit
61d3e09632
@ -4551,6 +4551,10 @@ int main(int argc, const char *argv[])
|
||||
control = extra_argv[0];
|
||||
|
||||
ev = event_context_init(NULL);
|
||||
if (!ev) {
|
||||
DEBUG(DEBUG_ERR, ("Failed to initialize event system\n"));
|
||||
exit(1);
|
||||
}
|
||||
|
||||
for (i=0;i<ARRAY_SIZE(ctdb_commands);i++) {
|
||||
if (strcmp(control, ctdb_commands[i].name) == 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user