mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-12 23:43: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)
|
||||
{
|
||||
while (seqnum != pktbuf->seqnum)
|
||||
while (pktbuf && seqnum != pktbuf->seqnum)
|
||||
pktbuf = pktbuf->next;
|
||||
}
|
||||
else
|
||||
{
|
||||
while (seqnum != pktbuf->seqnum)
|
||||
while (pktbuf && seqnum != pktbuf->seqnum)
|
||||
pktbuf = pktbuf->prev;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user