1
0
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:
Michael Smith 2003-02-24 14:56:49 +00:00
parent 5019130d27
commit 47b1d160ae

View File

@ -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;
}