mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-05 02:49:01 +00:00
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:
parent
7ff4f14204
commit
7e346f3694
@ -128,7 +128,7 @@ static void h1_shutw_conn(struct connection *conn);
|
|||||||
static inline int h1_recv_allowed(const struct h1c *h1c)
|
static inline int h1_recv_allowed(const struct h1c *h1c)
|
||||||
{
|
{
|
||||||
if (b_data(&h1c->ibuf) == 0 &&
|
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 ||
|
h1c->conn->flags & CO_FL_ERROR ||
|
||||||
conn_xprt_read0_pending(h1c->conn)))
|
conn_xprt_read0_pending(h1c->conn)))
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user