BUG/MINOR: h3: fix checking on NULL Tx buffer
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 29 Jan 2024 13:39:19 +0000 (14:39 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 29 Jan 2024 13:44:50 +0000 (14:44 +0100)
commit312be239dfceff2f5bd8bc667701dda20af05c88
treeee49f127da4c8d6fea901dc9e9030ae93cc50330
parentde3ab549a598bd3817bd77ae2ea5c03544637c3d
BUG/MINOR: h3: fix checking on NULL Tx buffer

The following patch was backported to handle gracefully Tx buffer
allocation failure.

  BUG/MINOR: h3: close connection on sending alloc errors

However, the backport is not correct. Indeed, mux_get_buf() returns a
pointer to <qcs.tx.buf> field which is always true. Instead, an explicit
check using b_is_null() must be done instead.

This must be backported up to 2.6.
src/h3.c