From: phk Date: Wed, 19 Jul 2006 19:43:39 +0000 (+0000) Subject: Make sure hp->v is NUL terminated. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5e0e0dfa5986ca16fbfe5aabb97b9bb6cecb027;p=varnish Make sure hp->v is NUL terminated. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@501 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_http.c b/varnish-cache/bin/varnishd/cache_http.c index 8f3d8bc7..483d04f8 100644 --- a/varnish-cache/bin/varnishd/cache_http.c +++ b/varnish-cache/bin/varnishd/cache_http.c @@ -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);