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.
This commit is contained in:
Willy Tarreau 2018-12-04 15:28:03 +01:00
parent ee57376ffb
commit 2fb1d4caaa

View File

@ -4283,6 +4283,9 @@ static size_t h2s_htx_frt_make_resp_data(struct h2s *h2s, struct htx *htx, size_
goto end; 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 */ /* for DATA and EOM we'll have to emit a frame, even if empty */
while (1) { while (1) {