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
This commit is contained in:
Mark Michelson
2009-03-31 22:00:01 +00:00
parent 36a68f792e
commit 7cc775e1ed

View File

@@ -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));