From: Matthew Jordan Date: Wed, 14 Dec 2011 21:58:12 +0000 (+0000) Subject: Fixed Asterisk crash when function QUEUE_MEMBER receives invalid input X-Git-Tag: 10.1.0-rc1~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d7518913972ec5459cd934c7126ab950dc19038;p=thirdparty%2Fasterisk.git Fixed Asterisk crash when function QUEUE_MEMBER receives invalid input The function QUEUE_MEMBER has two required parameters (queuename, option). It was only checking for the presence of queuename. The patch checks for the existence of the option parameter and provides better error logging when invalid values are provided for the option parameter as well. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@348211 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index bae89b8dc6..bb0c7d2bad 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -6309,12 +6309,17 @@ static int queue_function_mem_read(struct ast_channel *chan, const char *cmd, ch buf[0] = '\0'; if (ast_strlen_zero(data)) { - ast_log(LOG_ERROR, "%s requires an argument: queuename\n", cmd); + ast_log(LOG_ERROR, "Missing required argument. %s(,