diff --git a/main/indications.c b/main/indications.c index bd0e3bd54ca0caad19a899976522a337655578f8..c58a51660df0f0fea1a3c35f58e6fbd8915bc9da 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;