[asterisk-commits] qwell: trunk r49769 - /trunk/main/indications.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sun Jan 7 00:43:52 MST 2007
Author: qwell
Date: Sun Jan 7 01:43:52 2007
New Revision: 49769
URL: http://svn.digium.com/view/asterisk?view=rev&rev=49769
Log:
Fix a segfault when using "countries" that don't have a matching zone.
Modified:
trunk/main/indications.c
Modified: trunk/main/indications.c
URL: http://svn.digium.com/view/asterisk/trunk/main/indications.c?view=diff&rev=49769&r1=49768&r2=49769
==============================================================================
--- trunk/main/indications.c (original)
+++ trunk/main/indications.c Sun Jan 7 01:43:52 2007
@@ -400,6 +400,8 @@
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;
More information about the asterisk-commits
mailing list