aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authormurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-13 23:43:41 +0000
committermurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-13 23:43:41 +0000
commit726bcbdaa810d26631a9eeb95abb264f20b8deb8 (patch)
treeec72972e5c6f5f00a603268fa5e59a776501762e /main
parent136bb5795b67b6e80168c11ea27d5303a8a5d290 (diff)
This hopefully will fix the re-opened 11233. Hadn't covered the case of a context with no patterns. (blush)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89257 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/pbx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 71331b14a..72a2ffa2d 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -1555,7 +1555,7 @@ struct ast_exten *pbx_find_extension(struct ast_channel *chan,
score.total_specificity = 0;
score.exten = 0;
score.total_length = 0;
- if (!tmp->pattern_tree)
+ if (!tmp->pattern_tree && tmp->root_tree)
{
create_match_char_tree(tmp);
#ifdef NEED_DEBUG