summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorDavid Vossel <dvossel@digium.com>2010-02-18 20:58:41 +0000
committerDavid Vossel <dvossel@digium.com>2010-02-18 20:58:41 +0000
commit48134df6555247769f493b1ba5c293b7ba366983 (patch)
treede05d6fe6bb9176b9bb81b35cd6467f28a7a03e2 /apps
parent469fed1cd3292914b0ab7abfaa5fc6c1957bbaf9 (diff)
fixes Queue with C option crash
(closes issue #16475) Reported by: okrief Patches: queue_crash.diff uploaded by dvossel (license 671) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@247736 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r--apps/app_queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 288347b5b..7cd8ed0df 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -2584,7 +2584,7 @@ static void hangupcalls(struct callattempt *outgoing, struct ast_channel *except
while (outgoing) {
/* If someone else answered the call we should indicate this in the CANCEL */
/* Hangup any existing lines we have open */
- if (outgoing->chan && (outgoing->chan != exception || cancel_answered_elsewhere)) {
+ if (outgoing->chan && (outgoing->chan != exception)) {
if (exception || cancel_answered_elsewhere)
ast_set_flag(outgoing->chan, AST_FLAG_ANSWERED_ELSEWHERE);
ast_hangup(outgoing->chan);