aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/pbx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/pbx.c b/main/pbx.c
index b2b3dba17..2828a6bf1 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -1505,6 +1505,9 @@ static struct match_char *add_exten_to_pattern_tree(struct ast_context *con, str
*s2++ = s3;
}
s1++; s1++;
+ } else if (*s1 == '\0') {
+ ast_log(LOG_WARNING, "A matching ']' was not found for '[' in pattern string '%s'\n", extenbuf);
+ break;
} else {
*s2++ = *s1++;
}