From d43876cf09f4229927fb686081f524b5f752119a Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 6 Apr 2006 08:18:53 +0000 Subject: [PATCH] Add an assert, remove debugging. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@125 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_httpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varnish-cache/bin/varnishd/cache_httpd.c b/varnish-cache/bin/varnishd/cache_httpd.c index b820455f..91b3f2c5 100644 --- a/varnish-cache/bin/varnishd/cache_httpd.c +++ b/varnish-cache/bin/varnishd/cache_httpd.c @@ -97,6 +97,7 @@ HttpdAnalyze(struct sess *sp, int rr) for (; p < sp->rcv + sp->rcv_len; p = r) { q = strchr(p, '\n'); + assert(q != NULL); r = q + 1; if (q > p && q[-1] == '\r') q--; @@ -165,7 +166,6 @@ http_read_f(int fd, short event, void *arg) break; } sp->hdr_end = ++p - sp->rcv; - VSL(SLT_Debug, 0, "HTTP %u %u", sp->rcv_len, sp->hdr_end); event_del(sp->rd_e); sp->sesscb(sp); } -- 2.39.5