BUG/MINOR: h3: disable fast-forward on buffer alloc failure
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 22 Dec 2023 15:07:10 +0000 (16:07 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 2 Jan 2024 07:31:29 +0000 (08:31 +0100)
commit136dcd404828546ea5d9457eead3ac05182dd496
tree2b3dd24cef21e5c324ec990963b7dbcf6022905f
parent6ff13aa4cd2086fb284234f7584599bfad3ecadb
BUG/MINOR: h3: disable fast-forward on buffer alloc failure

If QCS Tx buffer cannot be allocated in nego_ff callback, disable
fast-forward for this connection and return immediately. If snd_buf is
later finally used but still no buffer can being allocated, the
connection will be closed on error.

This should fix coverity reported in github issue #2390.

This should be backported up to 2.9.

(cherry picked from commit cfa6d4cdd058ea112c461349a39d095ba96825e4)
[cf: qcc_get_stream_txbuf() does not exist. Result of mux_get_buf() is tested
     instead]
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/h3.c