From a6a66de23f7da2392556b815fbe1bc331fd7f51b Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 25 Jun 2008 09:59:21 +0000 Subject: [PATCH] Fix for ticket 262: When we trim leading whitespace that was read-ahead, NUL the rxbuffer. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2801 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_httpconn.c | 1 + 1 file changed, 1 insertion(+) diff --git a/varnish-cache/bin/varnishd/cache_httpconn.c b/varnish-cache/bin/varnishd/cache_httpconn.c index dae3f495..4078f2ec 100644 --- a/varnish-cache/bin/varnishd/cache_httpconn.c +++ b/varnish-cache/bin/varnishd/cache_httpconn.c @@ -63,6 +63,7 @@ htc_header_complete(txt *t) continue; if (*p == '\0') { t->e = t->b; + *t->e = '\0'; return (0); } while (1) { -- 2.39.5