aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-03-31 22:00:01 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-03-31 22:00:01 +0000
commitd8a684132def0321c72d965a45e5d06e73c69c4a (patch)
tree08df9fe3ea7526ac4c107a12d69a7c19240c8466 /apps
parent95c89b74bc86216e078d2ce7800d78374d6780ad (diff)
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.4@185599 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_queue.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 374f4e945..e7d21be7a 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));