From 598d7fc0c805ea4d2dc62e7f54abab09f02dee46 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 18 Dec 2018 18:10:38 +0100 Subject: [PATCH] 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. --- src/mux_h1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */