Commit 47b1d160 authored by Michael Smith's avatar Michael Smith

Commit fix for segfault in buffer length handling code.

svn path=/trunk/icecast/; revision=4365
parent 5019130d
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment