r501 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Wed Jul 19 21:43:39 CEST 2006


Author: phk
Date: 2006-07-19 21:43:39 +0200 (Wed, 19 Jul 2006)
New Revision: 501

Modified:
   trunk/varnish-cache/bin/varnishd/cache_http.c
Log:
Make sure hp->v is NUL terminated.


Modified: trunk/varnish-cache/bin/varnishd/cache_http.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_http.c	2006-07-19 12:37:03 UTC (rev 500)
+++ trunk/varnish-cache/bin/varnishd/cache_http.c	2006-07-19 19:43:39 UTC (rev 501)
@@ -402,6 +402,7 @@
 		memmove(hp->s, hp->t, l);
 		hp->v = hp->s + l;
 		hp->t = hp->s;
+		*hp->v = '\0';
 		if (http_header_complete(hp)) {
 			assert(func != NULL);
 			func(arg, 0);




More information about the varnish-commit mailing list