From: Jeff Peeler Date: Wed, 6 May 2009 22:02:46 +0000 (+0000) Subject: If no extension was found in the pattern tree, don't crash. X-Git-Tag: 11.0.0-beta1~4925 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=658f81cb574e0c9f8548a0c1d9278bb307a1c582;p=thirdparty%2Fasterisk.git 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 --- diff --git a/main/pbx.c b/main/pbx.c index 2787774541..2f946b9e8f 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -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;