diff options
author | Steve Murphy <murf@digium.com> | 2009-01-16 00:34:31 +0000 |
---|---|---|
committer | Steve Murphy <murf@digium.com> | 2009-01-16 00:34:31 +0000 |
commit | bdfda9ea23b3323c72cedd5733d94e6f6539f607 (patch) | |
tree | 0045e433497c9807dd2090c06d354d8b4cf955cf /res/ael/pval.c | |
parent | 2fb28891a306a7f5dda26ede7bf9567b6ed14ce6 (diff) |
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: https://origsvn.digium.com/svn/asterisk/trunk@168746 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/ael/pval.c')
-rw-r--r-- | res/ael/pval.c | 1 |
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); |