From f5e0e0dfa5986ca16fbfe5aabb97b9bb6cecb027 Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 19 Jul 2006 19:43:39 +0000 Subject: [PATCH] Make sure hp->v is NUL terminated. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@501 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_http.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.39.5