]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: adjust quic_frame flag manipulation
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 16 Aug 2022 12:41:57 +0000 (14:41 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 17 Aug 2022 09:04:47 +0000 (11:04 +0200)
commitf372e744dee12aafdfa9968dd0e0a0e5081d70ad
tree433139e3b8749b55e2bf1037191e054452593bfa
parent7b8f477da50e7656e4633225e60e4d22602fb351
MINOR: quic: adjust quic_frame flag manipulation

Replace a plain '=' operator by '|=' when setting quic_frame
QUIC_FL_TX_FRAME_LOST flag.

For the moment, this change has no impact as only two exclusive flags
are defined for quic_frame. On the edited code path we are certain that
QUIC_FL_TX_FRAME_ACKED is not set due to a previous if statement, so a
plain equal or a binary OR is strictly identical.

This change will be useful if new flags are defined for quic_frame in
the future. These new flags won't be resetted automatically thanks to
binary OR without explictly intended, which otherwise could easily lead
to new bugs.
src/xprt_quic.c