summaryrefslogtreecommitdiff
path: root/apps/app_queue.c
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2009-03-31 22:02:48 +0000
committerMark Michelson <mmichelson@digium.com>2009-03-31 22:02:48 +0000
commit5c0d934e6bd7c261db7c7a9565101e5615191145 (patch)
tree87d595b57094b6fb3afec0514e73f264c5b9f3e2 /apps/app_queue.c
parenta009068110039a455bdc916a57d8cd0d0f700da1 (diff)
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/trunk@185600 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_queue.c')
-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 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);