From 05081051d09a57d48e999f871519f5fc789fa713 Mon Sep 17 00:00:00 2001 From: andersb Date: Thu, 3 Aug 2006 23:42:47 +0000 Subject: [PATCH] Placed a new sbuf_clear at a more strategic place. It got cluttered when a host left without SessionClose of SessionReuse. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@626 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishncsa/varnishncsa.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/varnish-cache/bin/varnishncsa/varnishncsa.c b/varnish-cache/bin/varnishncsa/varnishncsa.c index ba22f93b..fcd86e71 100644 --- a/varnish-cache/bin/varnishncsa/varnishncsa.c +++ b/varnish-cache/bin/varnishncsa/varnishncsa.c @@ -120,6 +120,8 @@ extended_log_format(unsigned char *p, char *w_opt) // // Have to gather together data in SLT_RxRequest, SLT_RxURL, SLT_RxProtocol // to build the request, so I use a sbuf. + + sbuf_clear(ob[u]); if (p[1] >= 4 && !strncasecmp((void *)&p[4], "HEAD",4)){ sbuf_bcat(ob[u], p + 4, strlen(p + 4)); -- 2.39.5