]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: h3: fix return value on decode_qcs on error
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 7 Jun 2022 16:24:34 +0000 (18:24 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 7 Jun 2022 16:26:46 +0000 (18:26 +0200)
commitdca4c53a95f06124a3ae0cdd0343763541948b92
tree9864a3e569243de79338d6267f1bd198e7cc2d22
parent1f21ebdd7686bf435682cacd31e635db0c65b061
BUG/MINOR: h3: fix return value on decode_qcs on error

Convert return code to -1 when an error has been detected. This is
required since the previous API change on return value from the patch :

  1f21ebdd7686bf435682cacd31e635db0c65b061
  MINOR: mux-quic/h3: adjust demuxing function return values

Without this, QUIC MUX won't consider the call as an error and will try
to remove one byte from the buffer. This may cause a BUG_ON failure if
the buffer is empty at this stage.

This bug was introduced in the current dev tree. Does not need to be
backported.
src/h3.c