[svn-commits] mmichelson: branch 1.4 r185599 - /branches/1.4/apps/app_queue.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Mar 31 17:00:07 CDT 2009


Author: mmichelson
Date: Tue Mar 31 17:00:01 2009
New Revision: 185599

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=185599
Log:
Fix crash that would occur if an empty member was specified in queues.conf.

(closes issue #14796)
Reported by: pida


Modified:
    branches/1.4/apps/app_queue.c

Modified: branches/1.4/apps/app_queue.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.4/apps/app_queue.c?view=diff&rev=185599&r1=185598&r2=185599
==============================================================================
--- branches/1.4/apps/app_queue.c (original)
+++ branches/1.4/apps/app_queue.c Tue Mar 31 17:00:01 2009
@@ -4404,6 +4404,11 @@
 						struct member tmpmem;
 						membername = NULL;
 
+						if (ast_strlen_zero(var->value)) {
+							ast_log(LOG_WARNING, "Empty queue member definition at line %d. Moving on!\n", var->lineno);
+							continue;
+						}
+
 						/* Add a new member */
 						ast_copy_string(parse, var->value, sizeof(parse));
 						




More information about the svn-commits mailing list