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

Make sure hp->body is always initialized.

parent df46c40a
......@@ -503,7 +503,6 @@ http_swallow_body(struct http *hp, char * const *hh, int body)
char *p;
int i, l, ll;
hp->body = hp->rxbuf + hp->prxbuf;
ll = 0;
p = http_find_header(hh, "transfer-encoding");
if (p != NULL && !strcasecmp(p, "chunked")) {
......@@ -565,6 +564,7 @@ http_rxhdr(struct http *hp)
}
vtc_dump(hp->vl, 4, "rxhdr", hp->rxbuf, -1);
vtc_log(hp->vl, 4, "rxhdrlen = %zd", strlen(hp->rxbuf));
hp->body = hp->rxbuf + hp->prxbuf;
}
......
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