summaryrefslogtreecommitdiff
path: root/pbx/pbx_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'pbx/pbx_config.c')
-rw-r--r--pbx/pbx_config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c
index f0da2e87a..91cfe04e9 100644
--- a/pbx/pbx_config.c
+++ b/pbx/pbx_config.c
@@ -87,7 +87,7 @@ static char *handle_cli_dialplan_remove_include(struct ast_cli_entry *e, int cmd
return complete_dialplan_remove_include(a);
}
- if (strcmp(a->argv[4], "from"))
+ if (a->argc != 6 || strcmp(a->argv[4], "from"))
return CLI_SHOWUSAGE;
if (!ast_context_remove_include(a->argv[5], a->argv[3], registrar)) {