From: Christopher Faulet Date: Tue, 18 Jul 2017 08:35:55 +0000 (+0200) Subject: BUG/MINOR: http: Set the response error state in http_sync_res_state X-Git-Tag: v1.8-dev3~235 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a3992e06a6e74142d9784d18d8cb3527fadb64d6;p=thirdparty%2Fhaproxy.git BUG/MINOR: http: Set the response error state in http_sync_res_state This is just typo. It may only report a wrong response message state in "show errors" on the CLI. This patch must be backported in 1.7. --- diff --git a/src/proto_http.c b/src/proto_http.c index 4386282c46..dfe76d1fc2 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -5549,7 +5549,7 @@ int http_sync_res_state(struct stream *s) goto http_msg_closed; } else if (chn->flags & CF_SHUTW) { - txn->req.err_state = txn->req.msg_state; + txn->rsp.err_state = txn->rsp.msg_state; txn->rsp.msg_state = HTTP_MSG_ERROR; s->be->be_counters.cli_aborts++; if (objt_server(s->target))