diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-07 07:43:52 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-07 07:43:52 +0000 |
commit | ab72b6bec843e731e47505b3ad01bdd6923d8abf (patch) | |
tree | 2bc80aae4e6a369f3f6be2856c0bcd36f8ab9be9 /main/indications.c | |
parent | fb97e146a99069ec616b57022be060bac97bbb78 (diff) |
Fix a segfault when using "countries" that don't have a matching zone.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49769 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/indications.c')
-rw-r--r-- | main/indications.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/indications.c b/main/indications.c index bd0e3bd54..c58a51660 100644 --- a/main/indications.c +++ b/main/indications.c @@ -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; |