mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-13 07:53:23 -05:00
Fix crash with an empty buffer
This commit is contained in:
parent
f9a76aeb1a
commit
5c8b28cda4
@ -3286,12 +3286,12 @@ raop_v2_resend_range(struct raop_session *rs, uint16_t seqnum, uint16_t len)
|
|||||||
|
|
||||||
if (pktbuf == pktbuf_head)
|
if (pktbuf == pktbuf_head)
|
||||||
{
|
{
|
||||||
while (seqnum != pktbuf->seqnum)
|
while (pktbuf && seqnum != pktbuf->seqnum)
|
||||||
pktbuf = pktbuf->next;
|
pktbuf = pktbuf->next;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
while (seqnum != pktbuf->seqnum)
|
while (pktbuf && seqnum != pktbuf->seqnum)
|
||||||
pktbuf = pktbuf->prev;
|
pktbuf = pktbuf->prev;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user