]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: quic: fix closing state on NO_ERROR code sent
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 13 Jul 2022 13:08:23 +0000 (15:08 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 13 Jul 2022 13:33:15 +0000 (15:33 +0200)
commit72d86509f1f35d1a9d2bef2a6e6b34430bd8bec6
tree7827b31ff2a55e4f48eddd87b4e273b9c1a5a3b8
parent672972604f1407e221a52d96b77d1a7a01063baf
BUG/MINOR: quic: fix closing state on NO_ERROR code sent

Reception is disabled as soon as a CONNECTION_CLOSE emission is
required. An early return is done on qc_lstnr_pkt_rcv() to implement
this.

This condition is not functional if the error code sent is NO_ERROR
(0x00). To fix this, check the quic-conn flags instead of the
error code.

Currently this bug has no impact has NO_ERROR emission is not used.

This can be backported up to 2.6.
src/xprt_quic.c