From: Steve Murphy Date: Fri, 16 Jan 2009 00:19:12 +0000 (+0000) Subject: This patch fixes a problem where a goto (or jump, in this case) X-Git-Tag: 1.4.23-rc4~3^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93e9f63794f9e3c0eb13f7ee9918b33d2e2749ea;p=thirdparty%2Fasterisk.git 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/branches/1.4@168745 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/pbx/pbx_ael.c b/pbx/pbx_ael.c index 23454dd986..7eb3dc06c6 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);