]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mux-quic: fix RESET_STREAM on send-only stream
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 9 Oct 2023 08:42:04 +0000 (10:42 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 11 Oct 2023 12:15:31 +0000 (14:15 +0200)
commitd85f9f9d439e4d482b9ff96bb7c157fd4007a6c1
treef08cb71eb43c30d9f380fc0741d998cfdd221873
parenta4c59f5b9e30371e2f95ef7925033537db825e7c
BUG/MEDIUM: mux-quic: fix RESET_STREAM on send-only stream

When receiving a RESET_STREAM on a send-only stream, it is mandatory to
close the connection with an error STREAM_STATE error. However, this was
badly implemented as this caused two invocation of qcc_set_error() which
is forbidden by the mux-quic API.

To fix this, rely on qcc_get_qcs() to properly detect the error. Remove
qcc_set_error() usage from qcc_recv_reset_stream() instead.

This must be backported up to 2.7.
src/mux_quic.c