]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
CLI: Fix 'core set debug channel' completion bug.
authorCorey Farrell <git@cfware.com>
Mon, 18 Dec 2017 18:23:46 +0000 (13:23 -0500)
committerCorey Farrell <git@cfware.com>
Mon, 18 Dec 2017 18:35:54 +0000 (12:35 -0600)
The completion generator is missing a return so typing "core set debug
all off <tab>" causes the command to actually execute.

Change-Id: Ibf6462088a74eee66967732b50445783ebefc20b

main/cli.c

index 0f023b29f19cfec07f017366d0e00b44a3e19db6..654134eff9cff0c6c606aa75767f3082fb6dd588 100644 (file)
@@ -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)) {