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.
This commit is contained in:
Willy Tarreau 2018-12-18 18:10:38 +01:00
parent 567beb8a91
commit 598d7fc0c8
1 changed files with 1 additions and 1 deletions

View File

@ -827,7 +827,7 @@ static void h1_capture_bad_message(struct h1c *h1c, struct h1s *h1s,
struct proxy *other_end = sess->fe; struct proxy *other_end = sess->fe;
union error_snapshot_ctx ctx; 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; other_end = si_strm(h1s->cs->data)->be;
/* http-specific part now */ /* http-specific part now */