mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -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->next = *queue;
|
||||
item->total_length = item->next->total_length + item->refbuf->len;
|
||||
if(item->next)
|
||||
item->total_length = item->next->total_length + item->refbuf->len;
|
||||
else
|
||||
item->total_length = item->refbuf->len;
|
||||
*queue = item;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user