diff --git a/res/ael/pval.c b/res/ael/pval.c index e29cf56000..606866d3f4 100644 --- a/res/ael/pval.c +++ b/res/ael/pval.c @@ -744,6 +744,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);