diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 1af3565399..b729cab519 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -8850,7 +8850,7 @@ static void *network_thread(void *ignore) if (f->retries < 0) { /* This is not supposed to be retransmitted */ - AST_LIST_REMOVE(&frame_queue, f, list); + AST_LIST_REMOVE_CURRENT(&frame_queue, list); /* Free the iax frame */ iax_frame_free(f); } else {