From: Russell Bryant Date: Thu, 25 Nov 2004 07:13:08 +0000 (+0000) Subject: Segfault if head caller times out of queue with moh running (bug 2891) X-Git-Tag: 1.0.11.1~368 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=646dc459faa5d030fb7c8bbe9c7a267d2fe1ffac;p=thirdparty%2Fasterisk.git Segfault if head caller times out of queue with moh running (bug 2891) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4337 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index 6e1528b0c8..8ee8d6489d 100755 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -1704,7 +1704,7 @@ check_turns: } } /* Don't allow return code > 0 */ - if (res > 0 && res != AST_PBX_KEEPALIVE) { + if ((res == 0) || (res > 0 && res != AST_PBX_KEEPALIVE)) { res = 0; if (ringing) { ast_indicate(chan, -1);