From: Willy Tarreau Date: Tue, 18 Dec 2018 17:10:38 +0000 (+0100) Subject: BUG/MINOR: mux-h1: report the correct frontend in error captures X-Git-Tag: v1.9.0~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=598d7fc0c805ea4d2dc62e7f54abab09f02dee46;p=thirdparty%2Fhaproxy.git BUG/MINOR: mux-h1: report the correct frontend in error captures The error captures provided in HTX by the H1 mux would always report the backend as the "other end". We need to assign the backend only on requests. No backport is needed. --- diff --git a/src/mux_h1.c b/src/mux_h1.c index 4e884ed8f3..af2ce77877 100644 --- a/src/mux_h1.c +++ b/src/mux_h1.c @@ -827,7 +827,7 @@ static void h1_capture_bad_message(struct h1c *h1c, struct h1s *h1s, struct proxy *other_end = sess->fe; union error_snapshot_ctx ctx; - if (h1s->cs->data) + if (h1s->cs->data && !(h1m->flags & H1_MF_RESP)) other_end = si_strm(h1s->cs->data)->be; /* http-specific part now */