]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_rtp_asterisk: Resolve loop when receive buffer is flushed
authorPirmin Walthert <infos@nappsoft.ch>
Tue, 14 Apr 2020 15:48:07 +0000 (17:48 +0200)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Fri, 17 Apr 2020 11:08:48 +0000 (06:08 -0500)
commit7ed8078bdbee11620e042aefccb08e7bbcb15804
treeed3ea9415958b1a648c2736c616b36f5f227a368
parent3a5bdc68b226e29a612fd5a972b1052b6978e933
res_rtp_asterisk: Resolve loop when receive buffer is flushed

When the receive buffer was flushed by a received packet while it
already contained a packet with the same sequence number, Asterisk
never left the while loop which tried to order the packets.

This change makes it so if the packet is in the receive buffer it
is retrieved and freed allowing the buffer to empty.

ASTERISK-28827

Change-Id: Idaa376101bc1ac880047c49feb6faee773e718b3
res/res_rtp_asterisk.c