aboutsummaryrefslogtreecommitdiffstats
path: root/main/pbx.c
diff options
context:
space:
mode:
authorjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-06 22:02:46 +0000
committerjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-06 22:02:46 +0000
commit8de2b68b6b973c6c2639b15113a6787a5da4fdca (patch)
tree599a99b980ce50bfd3eacafb29967dc0f466150c /main/pbx.c
parent40b81e6709fbea6da25fb828d9e3752706cd3f92 (diff)
If no extension was found in the pattern tree, don't crash.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@192853 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/pbx.c')
-rw-r--r--main/pbx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 278777454..2f946b9e8 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;