From cfd16c6dd84acec6623250ffa41ce07eefee2f9a Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 3 Apr 2006 14:41:51 +0000 Subject: [PATCH] Move memset further up. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@102 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_httpd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/varnish-cache/bin/varnishd/cache_httpd.c b/varnish-cache/bin/varnishd/cache_httpd.c index 5c74b020..0694c913 100644 --- a/varnish-cache/bin/varnishd/cache_httpd.c +++ b/varnish-cache/bin/varnishd/cache_httpd.c @@ -21,6 +21,8 @@ HttpdAnalyze(struct sess *sp) sp->handling = HND_Unclass; + memset(&sp->http, 0, sizeof sp->http); + /* First, isolate and possibly identify request type */ sp->http.req = sp->rcv; for (p = sp->rcv; isalpha(*p); p++) @@ -55,8 +57,6 @@ HttpdAnalyze(struct sess *sp) if (*p == '\r') p++; - memset(&sp->http, 0, sizeof sp->http); - for (; p < sp->rcv + sp->rcv_len; p = r) { q = strchr(p, '\n'); r = q + 1; -- 2.39.5