Commit 5385a47c authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Report where in the gzip stream we found trouble

parent 61e8ab91
......@@ -555,7 +555,8 @@ cmd_http_gunzip_body(CMD_ARGS)
assert(Z_OK == inflateInit2(&vz, 31));
i = inflate(&vz, Z_FINISH);
if (i != Z_STREAM_END)
vtc_log(hp->vl, 0, "Gunzip error = %d (%s)", i, vz.msg);
vtc_log(hp->vl, 0, "Gunzip error = %d (%s) in:%jd out:%jd",
i, vz.msg, (intmax_t)vz.total_in, (intmax_t)vz.total_out);
hp->bodyl = vz.total_out;
memcpy(hp->body, p, hp->bodyl);
free(p);
......
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