]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
This hopefully will fix the re-opened 11233. Hadn't covered the case of a context...
authorSteve Murphy <murf@digium.com>
Tue, 13 Nov 2007 23:43:41 +0000 (23:43 +0000)
committerSteve Murphy <murf@digium.com>
Tue, 13 Nov 2007 23:43:41 +0000 (23:43 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89257 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/pbx.c

index 71331b14a92312b1a1431fd14b49a86f9a4d79d5..72a2ffa2dfe284b17e22860865f3f65b412e81af 100644 (file)
@@ -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