MINOR: quic: make a packet build fails when qc_build_frm() fails.
authorFrédéric Lécaille <flecaille@haproxy.com>
Fri, 18 Dec 2020 08:33:27 +0000 (09:33 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Dec 2020 10:57:26 +0000 (11:57 +0100)
commit133e8a714617cc6e3be6c6f0164b0d6694372a80
tree34d5a0399d01ff33e8bf3e91d19a5ae87271155b
parentf7e0b8d6ae191dc92779f6012e42bda10cf0b311
MINOR: quic: make a packet build fails when qc_build_frm() fails.

Even if the size of frames built by qc_build_frm() are computed so that
not to overflow a buffer, do not rely on this and always makes a packet
build fails if we could not build a frame.
Also add traces to have an idea where qc_build_frm() fails.
Fixes a memory leak in qc_build_phdshk_apkt().
include/haproxy/xprt_quic-t.h
src/xprt_quic.c