Skip to content
Snippets Groups Projects
Commit 50121354 authored by Jason Parker's avatar Jason Parker
Browse files

Fix a segfault when using "countries" that don't have a matching zone.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49769 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 5abda34c
No related branches found
No related tags found
No related merge requests found
...@@ -400,6 +400,8 @@ struct ind_tone_zone *ast_get_indication_zone(const char *country) ...@@ -400,6 +400,8 @@ struct ind_tone_zone *ast_get_indication_zone(const char *country)
if (!strcasecmp(tz->country, country)) if (!strcasecmp(tz->country, country))
break; break;
} }
if (!tz)
break;
/* If this is an alias then we have to search yet again otherwise we have found the zonezone */ /* If this is an alias then we have to search yet again otherwise we have found the zonezone */
if (tz->alias && tz->alias[0]) if (tz->alias && tz->alias[0])
country = tz->alias; country = tz->alias;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment