]> err.no Git - varnish/commitdiff
Fix copy&paste bug in fetch_chunked.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 3 Aug 2006 19:21:55 +0000 (19:21 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 3 Aug 2006 19:21:55 +0000 (19:21 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@624 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_fetch.c

index 339b1e90859524570086fa7d8ecd3b21499e2673..11e5762c11bbeaee613e9de7ffafb61b4a004897 100644 (file)
@@ -127,7 +127,7 @@ fetch_chunked(const struct sess *sp, int fd, struct http *hp)
                        } else if (i >= v) {
                                memcpy(p, q, v);
                                p += v;
-                               st->len += i;
+                               st->len += v;
                                q += v;
                                u -= v;
                                v -= v;