r2090 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Mon Oct 8 13:32:31 CEST 2007


Author: phk
Date: 2007-10-08 13:32:30 +0200 (Mon, 08 Oct 2007)
New Revision: 2090

Modified:
   trunk/varnish-cache/bin/varnishd/cache_http.c
Log:
We may in fact not have any headers.


Modified: trunk/varnish-cache/bin/varnishd/cache_http.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_http.c	2007-10-08 11:28:39 UTC (rev 2089)
+++ trunk/varnish-cache/bin/varnishd/cache_http.c	2007-10-08 11:32:30 UTC (rev 2090)
@@ -362,7 +362,7 @@
 	hp->nhd = HTTP_HDR_FIRST;
 	hp->conds = 0;
 	r = NULL;		/* For FlexeLint */
-	assert(p < t.e);	/* http_header_complete() guarantees this */
+	assert(p <= t.e);	/* http_header_complete() guarantees this */
 	for (; p < t.e; p = r) {
 		/* XXX: handle continuation lines */
 		q = strchr(p, '\n');




More information about the varnish-commit mailing list