aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authordvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2010-01-04 16:39:11 +0000
committerdvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2010-01-04 16:39:11 +0000
commit9813658fe34bbc787ccc49c280bd916e3b55d487 (patch)
tree97b0d1335300f912fff3eb911d65c2b4393ff612 /apps
parentc6678d2ee6fd461b684b26c3fab30b57272301d4 (diff)
app_queue segfaults if realtime field uniqueid is NULL
(closes issue #16385) Reported by: haakon Patches: app_queue.c.patch uploaded by haakon (license 880) app_queue.c.patch_v2 uploaded by dvossel (license 671) Tested by: haakon git-svn-id: http://svn.digium.com/svn/asterisk/trunk@237327 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 29fc040db..d41d27295 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -1851,6 +1851,11 @@ static void rt_handle_member_record(struct call_queue *q, char *interface, const
int paused = 0;
int found = 0;
+ if (ast_strlen_zero(rt_uniqueid)) {
+ ast_log(LOG_WARNING, "Realtime field uniqueid is empty for memeber %s\n", S_OR(membername, "NULL"));
+ return;
+ }
+
if (penalty_str) {
penalty = atoi(penalty_str);
if (penalty < 0)