BUILD: quic: Variable name typo inside a BUG_ON().
authorFrederic Lecaille <flecaille@haproxy.com>
Mon, 5 Feb 2024 13:31:21 +0000 (14:31 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 7 Feb 2024 10:42:04 +0000 (11:42 +0100)
This build issued was introduced by this previous commit which is a bugfix:

   BUG/MINOR: quic: Wrong ack ranges handling when reaching the limit.

A BUG_ON() referenced <fist> variable in place of <first>.

Must be backported as far as 2.6 as the previous commit.

(cherry picked from commit 59acb27001ab225aff7e7d1b24f25e0e17b18ff3)
Signed-off-by: Willy Tarreau <w@1wt.eu>

src/quic_ack.c

index 9551c4d..d28a698 100644 (file)
@@ -84,7 +84,7 @@ struct quic_arng_node *quic_insert_new_range(struct quic_conn *qc,
                struct eb64_node *first;
 
                first = eb64_first(&arngs->root);
-               BUG_ON(fist == NULL);
+               BUG_ON(first == NULL);
                eb64_delete(first);
                pool_free(pool_head_quic_arng, first);
                arngs->sz--;