diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-03-31 22:05:31 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-03-31 22:05:31 +0000 |
commit | ced91aabc0667b7503305943059da745f3543b66 (patch) | |
tree | c85af05c1c00ddb25e7eb230e2c81d81a942107f /apps/app_queue.c | |
parent | 5336d21d04f25144a04df0752ec2264b851893b8 (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.6.2@185603 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_queue.c')
-rw-r--r-- | apps/app_queue.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index b3dd532d5..aa43f4a64 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -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); |