mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-03 04:16:43 +00:00
Merged revisions 182530 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r182530 | kpfleming | 2009-03-17 09:59:33 -0500 (Tue, 17 Mar 2009) | 2 lines correct logic flaw in ast_answer() changes in r182525 ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@182533 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1812,7 +1812,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