]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: h2: fix a typo causing PING/ACK to be responded to
authorWilly Tarreau <w@1wt.eu>
Sun, 3 Dec 2017 17:15:56 +0000 (18:15 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 3 Dec 2017 20:08:41 +0000 (21:08 +0100)
The ACK flag was tested on the frame type instead of the frame flag.

To backport to 1.8.

src/mux_h2.c

index 0c2fcdeb2f73c13421bf0e6abd8db45b2c2d0965..bf080054e6b6b832cc9ad7c35c130204e69dd622 100644 (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;
 }