]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Missing acks encoded size updates.
authorFrédéric Lécaille <flecaille@haproxy.com>
Tue, 10 Aug 2021 07:54:03 +0000 (09:54 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Sep 2021 13:27:25 +0000 (15:27 +0200)
There were cases where the encoded size of acks was not updated leading
to ACK frames building too big compared to the expected size. At this
time, this makes the code "BUG_ON()".

src/xprt_quic.c

index cfd8a687703094dad7d2043e44100ea80eef5f09..e2d2ca6a592023043959ec2a24d67dcd82802569 100644 (file)
@@ -2450,9 +2450,9 @@ int quic_update_ack_ranges_list(struct quic_arngs *arngs,
                }
        }
 
+ out:
        quic_arngs_set_enc_sz(arngs);
 
- out:
        return 1;
 }
 /* Remove the header protection of packets at <el> encryption level.