diff --git a/src/mux_h2.c b/src/mux_h2.c index 4e128d038..0a8238dd8 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -2270,7 +2270,7 @@ static void h2_process_demux(struct h2c *h2c) * Some frames have to be silently ignored as well. */ if (h2s->st == H2_SS_CLOSED && h2c->dsi) { - if (h2c->dft == H2_FT_HEADERS || h2c->dft == H2_FT_PUSH_PROMISE) { + if (h2_ft_bit(h2c->dft) & H2_FT_HDR_MASK) { /* #5.1.1: The identifier of a newly * established stream MUST be numerically * greater than all streams that the initiating