diff options
author | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-01-04 16:50:24 +0000 |
---|---|---|
committer | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-01-04 16:50:24 +0000 |
commit | 739aac8ba868103875b01c611911761c4326237d (patch) | |
tree | 43d91de685f66cb168fcb450b55c5add8eeba897 /apps/app_queue.c | |
parent | 6283c062a260b98e37e0121d39577ae8438f28ce (diff) |
Merged revisions 237327 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r237327 | dvossel | 2010-01-04 10:39:11 -0600 (Mon, 04 Jan 2010) | 10 lines
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/branches/1.6.2@237328 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 15c65f606..23f54b7e6 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -1585,6 +1585,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) |