r2801 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Wed Jun 25 11:59:22 CEST 2008


Author: phk
Date: 2008-06-25 11:59:21 +0200 (Wed, 25 Jun 2008)
New Revision: 2801

Modified:
   trunk/varnish-cache/bin/varnishd/cache_httpconn.c
Log:
Fix for ticket 262:  When we trim leading whitespace that was
read-ahead, NUL the rxbuffer.



Modified: trunk/varnish-cache/bin/varnishd/cache_httpconn.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_httpconn.c	2008-06-25 09:58:43 UTC (rev 2800)
+++ trunk/varnish-cache/bin/varnishd/cache_httpconn.c	2008-06-25 09:59:21 UTC (rev 2801)
@@ -63,6 +63,7 @@
 		continue;
 	if (*p == '\0') {
 		t->e = t->b;
+		*t->e = '\0';
 		return (0);
 	}
 	while (1) {




More information about the varnish-commit mailing list