Commit c34255fa authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Dridi Boukelmoune

Only check errno if write(2) failed.

Hopefully this...

Fixes	#2605
parent b5033c59
......@@ -271,7 +271,8 @@ http1_minimal_response(struct req *req, uint16_t status)
if (wl > 0)
req->acct.resp_hdrbytes += wl;
if (wl != l) {
VTCP_Assert(1);
if (wl < 0)
VTCP_Assert(1);
if (!req->doclose)
req->doclose = SC_REM_CLOSE;
return (-1);
......
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