mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-15 22:38:08 +00:00
Merged revisions 185600 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r185600 | mmichelson | 2009-03-31 17:02:48 -0500 (Tue, 31 Mar 2009) | 12 lines Merged revisions 185599 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r185599 | mmichelson | 2009-03-31 17:00:01 -0500 (Tue, 31 Mar 2009) | 6 lines 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.6.2@185603 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -5603,6 +5603,11 @@ static void reload_single_member(const char *memberdata, struct call_queue *q)
|
||||
AST_APP_ARG(state_interface);
|
||||
);
|
||||
|
||||
if (ast_strlen_zero(memberdata)) {
|
||||
ast_log(LOG_WARNING, "Empty queue member definition at line %d. Moving on!\n", var->lineno);
|
||||
return;
|
||||
}
|
||||
|
||||
/* Add a new member */
|
||||
parse = ast_strdupa(memberdata);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user