]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/BUILD: h3: fix wrong label name
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 15 Jun 2022 13:52:27 +0000 (15:52 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 15 Jun 2022 13:52:27 +0000 (15:52 +0200)
A pretty ugly mistake introduced recently with an invalid goto statement
which prevents QUIC compilation on haproxy.

This must be backported on 2.6 as a complement to
  60ef19f137bad8cd97598970c708dd0bf4a89a70
  BUG/MINOR: h3/qpack: deal with too many headers

src/h3.c

index de5a114a9941d7271b781cd3b1f90801caa305a0..797d4f2ee324702a8f747f3544d0c763e70dc17a 100644 (file)
--- a/src/h3.c
+++ b/src/h3.c
@@ -798,7 +798,7 @@ static int h3_resp_headers_send(struct qcs *qcs, struct htx *htx)
                }
                else if (type == HTX_BLK_HDR) {
                        if (unlikely(hdr >= sizeof(list) / sizeof(list[0]) - 1))
-                               goto fail;
+                               goto err;
                        list[hdr].n = htx_get_blk_name(htx, blk);
                        list[hdr].v = htx_get_blk_value(htx, blk);
                        hdr++;