mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05:00
Commit fix for segfault in buffer length handling code.
svn path=/trunk/icecast/; revision=4365
This commit is contained in:
parent
5019130d27
commit
47b1d160ae
@ -99,7 +99,10 @@ void refbuf_queue_insert(refbuf_queue_t **queue, refbuf_t *refbuf)
|
|||||||
|
|
||||||
item->refbuf = refbuf;
|
item->refbuf = refbuf;
|
||||||
item->next = *queue;
|
item->next = *queue;
|
||||||
|
if(item->next)
|
||||||
item->total_length = item->next->total_length + item->refbuf->len;
|
item->total_length = item->next->total_length + item->refbuf->len;
|
||||||
|
else
|
||||||
|
item->total_length = item->refbuf->len;
|
||||||
*queue = item;
|
*queue = item;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user