BUG/MINOR: h2: fix a typo causing PING/ACK to be responded to

The ACK flag was tested on the frame type instead of the frame flag.

To backport to 1.8.
This commit is contained in:
Willy Tarreau 2017-12-03 18:15:56 +01:00
parent cd4fe17a26
commit 68ed64148a

View File

@ -1159,7 +1159,7 @@ static int h2c_handle_ping(struct h2c *h2c)
}
/* schedule a response */
if (!(h2c->dft & H2_F_PING_ACK))
if (!(h2c->dff & H2_F_PING_ACK))
h2c->st0 = H2_CS_FRAME_A;
return 1;
}