]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux-h2: stop on non-DATA and non-EOM HTX blocks
authorWilly Tarreau <w@1wt.eu>
Tue, 4 Dec 2018 14:28:03 +0000 (15:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 4 Dec 2018 17:32:39 +0000 (18:32 +0100)
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

index 3cc39846c02b7ed89a8a8c00af73f5cdf29bed23..5585ac2c2cc890571fad062517724dbd24703413 100644 (file)
@@ -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) {