$OpenBSD: patch-src_chunk_c,v 1.4 2015/12/30 07:54:42 jasper Exp $

[chunk] fix use after free / double free
http://redmine.lighttpd.net/projects/lighttpd/repository/revisions/3065

--- src/chunk.c.orig	Sun Dec 27 17:34:40 2015
+++ src/chunk.c	Sun Dec 27 17:35:03 2015
@@ -172,6 +172,7 @@ static void chunkqueue_prepend_chunk(chunkqueue *cq, c
 }
 
 static void chunkqueue_append_chunk(chunkqueue *cq, chunk *c) {
+	c->next = NULL;
 	if (cq->last) {
 		cq->last->next = c;
 	}
