]> err.no Git - varnish/commitdiff
Make sure hp->v is NUL terminated.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 19 Jul 2006 19:43:39 +0000 (19:43 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 19 Jul 2006 19:43:39 +0000 (19:43 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@501 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_http.c

index 8f3d8bc78e880099ebb9897e7382a0abef10a463..483d04f8596c89979597e5bbbffa7cc9bd116ae1 100644 (file)
@@ -402,6 +402,7 @@ http_RecvHead(struct http *hp, int fd, struct event_base *eb, http_callback_f *f
                memmove(hp->s, hp->t, l);
                hp->v = hp->s + l;
                hp->t = hp->s;
+               *hp->v = '\0';
                if (http_header_complete(hp)) {
                        assert(func != NULL);
                        func(arg, 0);