]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: h3: fix uninitialized value in h3_req_headers_send()
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 22 Jul 2025 07:39:27 +0000 (09:39 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 22 Jul 2025 07:42:52 +0000 (09:42 +0200)
commite02939108e418f7637efd781473071695f201958
tree36c5278ed81c0b3c1750f497f475e5dadc36f1d2
parentcbbbf4ea43a45cd8aea090e64650ee48c8ddac66
BUG/MINOR: h3: fix uninitialized value in h3_req_headers_send()

Due to the introduction of smallbuf usage for HTTP/3 headers emission,
ret variable may be used uninitialized if buffer allocation fails due to
not enough room in QUIC connection window.

Fix this by setting ret value to 0.

Function variable declaration are also adjusted so that the pattern is
similar to h3_resp_headers_send(). Finally, outbuf buffer is also
removed as it is now unused.

No need to backport.
src/h3.c