From 48134df6555247769f493b1ba5c293b7ba366983 Mon Sep 17 00:00:00 2001 From: David Vossel Date: Thu, 18 Feb 2010 20:58:41 +0000 Subject: [PATCH] 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 --- apps/app_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app_queue.c b/apps/app_queue.c index 288347b5bb..7cd8ed0df0 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);