diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/channel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/channel.c b/main/channel.c index cb971b1ea..699d49568 100644 --- a/main/channel.c +++ b/main/channel.c @@ -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); } |