From: Corey Farrell Date: Mon, 18 Dec 2017 18:23:46 +0000 (-0500) Subject: CLI: Fix 'core set debug channel' completion bug. X-Git-Tag: 13.19.0-rc1~14^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5cdc65cf1e83274b90cf0410f1174eac2b277296;p=thirdparty%2Fasterisk.git CLI: Fix 'core set debug channel' completion bug. The completion generator is missing a return so typing "core set debug all off " causes the command to actually execute. Change-Id: Ibf6462088a74eee66967732b50445783ebefc20b --- diff --git a/main/cli.c b/main/cli.c index 8e0cc3bd3e..7039b72fca 100644 --- a/main/cli.c +++ b/main/cli.c @@ -1418,6 +1418,8 @@ static char *handle_core_set_debug_channel(struct ast_cli_entry *e, int cmd, str } else if (a->pos == 5) { return ast_cli_complete(a->word, completions_off, a->n); } + + return NULL; } if (cmd == (CLI_HANDLER + 1000)) {