BUG/MINOR: h3: fix crash on h3s alloc failure
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 19 Apr 2023 09:49:16 +0000 (11:49 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 20 Apr 2023 12:49:32 +0000 (14:49 +0200)
commit9bbfa72b672c833c56779c08063d0c6af6230762
tree7e84ef76939e433d04cecccef0edc0666011f989
parent93d2ebe9f371632d2a9516eb1164292275da4795
BUG/MINOR: h3: fix crash on h3s alloc failure

Do not emit a CONNECTION_CLOSE on h3s allocation failure. Indeed, this
causes a crash as the calling function qcs_new() will also try to emit a
CONNECTION_CLOSE which triggers a BUG_ON() on qcc_emit_cc().

This was reproduced using -dMfail.

This should be backported up to 2.7.
src/h3.c