mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-08 16:23:24 -04:00
BUG/MINOR: quic: fix ack range node pool_free call passing wrong pointer type
In quic_insert_new_range(), the variable 'first' is a struct eb64_node*, but pool_free expects a struct quic_arng_node*. While the addresses are identical (since 'first' is the first member of quic_arng_node), this is technically incorrect and should use eb64_entry() for proper type safety. Must be backported to all versions.
This commit is contained in:
parent
1cf1a0c8b1
commit
52ce316786
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ struct quic_arng_node *quic_insert_new_range(struct quic_conn *qc,
|
|||
first = eb64_first(&arngs->root);
|
||||
BUG_ON(first == NULL);
|
||||
eb64_delete(first);
|
||||
pool_free(pool_head_quic_arng, first);
|
||||
pool_free(pool_head_quic_arng, eb64_entry(first, struct quic_arng_node, first));
|
||||
arngs->sz--;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue