mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
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
This commit is contained in:
@@ -400,6 +400,8 @@ struct ind_tone_zone *ast_get_indication_zone(const char *country)
|
||||
if (!strcasecmp(tz->country, country))
|
||||
break;
|
||||
}
|
||||
if (!tz)
|
||||
break;
|
||||
/* If this is an alias then we have to search yet again otherwise we have found the zonezone */
|
||||
if (tz->alias && tz->alias[0])
|
||||
country = tz->alias;
|
||||
|
Reference in New Issue
Block a user