summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorSteve Murphy <murf@digium.com>2007-11-13 23:43:41 +0000
committerSteve Murphy <murf@digium.com>2007-11-13 23:43:41 +0000
commitfd1f6df25f9c08f090be67c7a22a4477ec8fa941 (patch)
treeec72972e5c6f5f00a603268fa5e59a776501762e /main
parentf0a7e86177d40989c9f7f173de87489c54b6af50 (diff)
This hopefully will fix the re-opened 11233. Hadn't covered the case of a context with no patterns. (blush)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89257 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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