aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pbx/pbx_ael.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pbx/pbx_ael.c b/pbx/pbx_ael.c
index 23454dd98..7eb3dc06c 100644
--- a/pbx/pbx_ael.c
+++ b/pbx/pbx_ael.c
@@ -762,6 +762,7 @@ static int extension_matches(pval *here, const char *exten, const char *pattern)
while ( *p && *p != ']' ) {
*r++ = *p++;
}
+ *r++ = ']';
if ( *p != ']') {
ast_log(LOG_WARNING, "Warning: file %s, line %d-%d: The extension pattern '%s' is missing a closing bracket \n",
here->filename, here->startline, here->endline, pattern);