r2023 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Tue Sep 25 09:21:40 CEST 2007


Author: phk
Date: 2007-09-25 09:21:40 +0200 (Tue, 25 Sep 2007)
New Revision: 2023

Modified:
   trunk/varnish-cache/bin/varnishd/cache_http.c
Log:
Polish


Modified: trunk/varnish-cache/bin/varnishd/cache_http.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_http.c	2007-09-25 07:19:54 UTC (rev 2022)
+++ trunk/varnish-cache/bin/varnishd/cache_http.c	2007-09-25 07:21:40 UTC (rev 2023)
@@ -616,7 +616,6 @@
 	hp->rx_s = hp->ws->f;
 	hp->rx_e = hp->rx_s;
 	if (hp->pl_s != NULL) {
-		assert(hp->pl_s < hp->pl_e);
 		l = pdiff(hp->pl_s, hp->pl_s);
 		memmove(hp->rx_s, hp->pl_s, l);
 		hp->rx_e = hp->rx_s + l;
@@ -857,7 +856,7 @@
 			WSLH(w, htt, fd, hp, u);
 			continue;
 		}
-		l = pdiff(hp->hd[u].b,  hp->hd[u].e);
+		l = pdiff(hp->hd[u].b, hp->hd[u].e);
 		p = WS_Alloc(hp->ws, l + 1);
 		if (p != NULL) {
 			WSLH(w, htt, fd, hp, u);




More information about the varnish-commit mailing list