MINOR: quic: Evaluate the packet lengths in advance
authorFrédéric Lécaille <flecaille@haproxy.com>
Mon, 16 Aug 2021 10:06:46 +0000 (12:06 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Sep 2021 13:27:25 +0000 (15:27 +0200)
commit4436cb6606423399d1b02bf812f66369036924b7
tree93e6f02c21eec7807914442185ca47c7c2a36cbd
parent82b8652ac66722c86b0bebd383de25347dd61a71
MINOR: quic: Evaluate the packet lengths in advance

We must evaluate the packet lenghts in advance to be sure we do not
consume a packet number for nothing. The packet building must always
succeeds. This is the role of qc_eval_pkt() implemented by this patch
called before calling qc_do_build_pkt() which was previously modified to
always succeed.
src/xprt_quic.c