mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user