aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authormurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2009-01-16 00:47:29 +0000
committermurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2009-01-16 00:47:29 +0000
commitd004f86affcda3be91056cb0b6e07a563ab46faa (patch)
tree096abc8e3463939173f7f7e28e3d8b565b69316c /res
parent842706f5dc03a8d17f9e9924dbe9848aa9ea6d12 (diff)
Merged revisions 168746 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r168746 | murf | 2009-01-15 17:34:31 -0700 (Thu, 15 Jan 2009) | 20 lines Merged revisions 168745 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r168745 | murf | 2009-01-15 17:19:12 -0700 (Thu, 15 Jan 2009) | 14 lines This patch fixes a problem where a goto (or jump, in this case) fails a consistency check because it can't find a matching extension. The problem was a missing instruction to end the range notation in the code where it converts the pattern into a regex and uses the regex code to determine the match. I tested using the AEL code the user supplied, and now, the consistency check passes. (closes issue #14141) Reported by: dimas ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@168748 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/ael/pval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/res/ael/pval.c b/res/ael/pval.c
index 8ee603aae..20e5eddc3 100644
--- a/res/ael/pval.c
+++ b/res/ael/pval.c
@@ -745,6 +745,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);