]> 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)
committerJoshua Colp <jcolp@sangoma.com>
Fri, 17 Apr 2020 11:11:19 +0000 (06:11 -0500)
commitd50fd0acc00dcc4ffdcc48e27375752b842957dd
treec4321df9c7fe5e71c72514ea3004a041b149c0c5
parenta107e85b2ed03909c821a051b823cc0478e918b6
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