mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 23:38:23 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user