From: Mark Michelson Date: Tue, 31 Mar 2009 22:00:01 +0000 (+0000) Subject: Fix crash that would occur if an empty member was specified in queues.conf. X-Git-Tag: 1.4.25-rc1~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7cc775e1edb2e62f9523e6c7f3d0003564446204;p=thirdparty%2Fasterisk.git Fix crash that would occur if an empty member was specified in queues.conf. (closes issue #14796) Reported by: pida git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@185599 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index 374f4e9451..e7d21be7ac 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -4404,6 +4404,11 @@ static int reload_queues(void) 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));