If no extension was found in the pattern tree, don't crash.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@192853 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Jeff Peeler
2009-05-06 22:02:46 +00:00
parent 9936f0ca14
commit 658f81cb57

View File

@@ -1999,7 +1999,7 @@ static struct match_char *add_exten_to_pattern_tree(struct ast_context *con, str
m0 = &m1->next_char;
}
if (!(*(s1 + 1))) {
if (m2) {
if (m2 && m2->exten) {
ast_log(LOG_WARNING, "Found duplicate exten. Had %s found %s\n", m2->exten->exten, e1->exten);
}
m1->deleted = 0;