r5645 - trunk/varnish-cache/bin/varnishd

phk at varnish-cache.org phk at varnish-cache.org
Wed Dec 15 13:03:05 CET 2010


Author: phk
Date: 2010-12-15 13:03:05 +0100 (Wed, 15 Dec 2010)
New Revision: 5645

Modified:
   trunk/varnish-cache/bin/varnishd/cache_http.c
Log:
Fix a commit to reflect that http_copyh() is only to be used for
the fixed location HTTP fields.

Prodded by: email from anordby, in re r4603



Modified: trunk/varnish-cache/bin/varnishd/cache_http.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_http.c	2010-12-13 14:40:46 UTC (rev 5644)
+++ trunk/varnish-cache/bin/varnishd/cache_http.c	2010-12-15 12:03:05 UTC (rev 5645)
@@ -661,7 +661,7 @@
 http_copyh(const struct http *to, const struct http *fm, unsigned n)
 {
 
-	assert(n < to->shd);
+	assert(n < HTTP_HDR_FIRST);
 	Tcheck(fm->hd[n]);
 	to->hd[n] = fm->hd[n];
 	to->hdf[n] = fm->hdf[n];




More information about the varnish-commit mailing list