From 2fb1d4caaae583d68aed5e605eb3a0c07d87a714 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 4 Dec 2018 15:28:03 +0100 Subject: [PATCH] MINOR: mux-h2: stop on non-DATA and non-EOM HTX blocks We don't want to send such blocks as DATA frames if they were ever to appear, let's quit when meeting them. --- src/mux_h2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mux_h2.c b/src/mux_h2.c index 3cc39846c..5585ac2c2 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -4283,6 +4283,9 @@ static size_t h2s_htx_frt_make_resp_data(struct h2s *h2s, struct htx *htx, size_ goto end; } + if (type != HTX_BLK_DATA && type != HTX_BLK_EOM) + goto end; + /* for DATA and EOM we'll have to emit a frame, even if empty */ while (1) {