Commit efb75a74 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Make sure hp->v is NUL terminated.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@501 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 778cbefc
...@@ -402,6 +402,7 @@ http_RecvHead(struct http *hp, int fd, struct event_base *eb, http_callback_f *f ...@@ -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); memmove(hp->s, hp->t, l);
hp->v = hp->s + l; hp->v = hp->s + l;
hp->t = hp->s; hp->t = hp->s;
*hp->v = '\0';
if (http_header_complete(hp)) { if (http_header_complete(hp)) {
assert(func != NULL); assert(func != NULL);
func(arg, 0); func(arg, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment