[asterisk-commits] seanbright: branch 1.4 r251410 - /branches/1.4/apps/app_parkandannounce.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Mar 9 13:29:44 CST 2010


Author: seanbright
Date: Tue Mar  9 13:29:39 2010
New Revision: 251410

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=251410
Log:
Use ast_strlen_zero to avoid a crash when a Dial() string isn't passed to ParkAndAnnounce

(closes issue #16731)
Reported by: sebele67
Patches:
      issue16731_20100129.diff uploaded by seanbright (license 71)
Tested by: sebele67

Modified:
    branches/1.4/apps/app_parkandannounce.c

Modified: branches/1.4/apps/app_parkandannounce.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/apps/app_parkandannounce.c?view=diff&rev=251410&r1=251409&r2=251410
==============================================================================
--- branches/1.4/apps/app_parkandannounce.c (original)
+++ branches/1.4/apps/app_parkandannounce.c Tue Mar  9 13:29:39 2010
@@ -112,7 +112,7 @@
 		timeout *= 1000;
 	}
 	dial = strsep(&s, "|");
-	if(!dial) {
+	if (ast_strlen_zero(dial)) {
 		ast_log(LOG_WARNING, "PARK: A dial resource must be specified i.e: Console/dsp or Zap/g1/5551212\n");
 		ast_module_user_remove(u);
 		return -1;




More information about the asterisk-commits mailing list