mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 08:40:16 +00:00
correct logic flaw in ast_answer() changes in r182525
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@182530 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1837,7 +1837,8 @@ int __ast_answer(struct ast_channel *chan, unsigned int delay, int cdr_answer)
|
||||
|
||||
if (res == 0) {
|
||||
ast_channel_lock(chan);
|
||||
while ((cur = AST_LIST_REMOVE(&frames, AST_LIST_LAST(&frames), frame_list))) {
|
||||
while ((cur = AST_LIST_LAST(&frames))) {
|
||||
AST_LIST_REMOVE(&frames, cur, frame_list);
|
||||
ast_queue_frame_head(chan, cur);
|
||||
ast_frfree(cur);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user