BUG/MINOR: mux-htx: Fix bad test on h1c flags in h1_recv_allowed()

A logical OR was used instead of a binary OR. Thanks to David Carlier to spot
and report this bug.
This commit is contained in:
Christopher Faulet 2018-11-20 17:13:52 +01:00
parent 7ff4f14204
commit 7e346f3694

View File

@ -128,7 +128,7 @@ static void h1_shutw_conn(struct connection *conn);
static inline int h1_recv_allowed(const struct h1c *h1c)
{
if (b_data(&h1c->ibuf) == 0 &&
(h1c->flags & (H1C_F_CS_ERROR||H1C_F_CS_SHUTW) ||
(h1c->flags & (H1C_F_CS_ERROR|H1C_F_CS_SHUTW) ||
h1c->conn->flags & CO_FL_ERROR ||
conn_xprt_read0_pending(h1c->conn)))
return 0;