From 731a23fba76d51cfef139895964d2dbe7af12afc Mon Sep 17 00:00:00 2001
From: Corey Farrell <git@cfware.com>
Date: Mon, 18 Dec 2017 13:23:46 -0500
Subject: [PATCH] CLI: Fix 'core set debug channel' completion bug.

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 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/main/cli.c b/main/cli.c
index 75846b8c9a..207d1f830a 100644
--- a/main/cli.c
+++ b/main/cli.c
@@ -1391,6 +1391,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)) {
-- 
GitLab