]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: quic: fix crash on quic_conn alloc failure
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 19 May 2025 09:02:46 +0000 (11:02 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 19 May 2025 09:03:48 +0000 (11:03 +0200)
commitd358da4d83789ac86d3631dd6552a898dec1338b
treedf88adccaa83c12539331be588d2fababfa38249
parent099c1b244266c38d77b39c2fdbb36074b28c9735
BUG/MINOR: quic: fix crash on quic_conn alloc failure

If there is an alloc failure during qc_new_conn(), cleaning is done via
quic_conn_release(). However, since the below commit, an unchecked
dereferencing of <qc.path> is performed in the latter.

  e841164a4402118bd7b2e2dc2b5068f21de5d9d2
  MINOR: quic: account for global congestion window

To fix this, simply check <qc.path> before dereferencing it in
quic_conn_release(). This is safe as it is properly initialized to NULL
on qc_new_conn() first stage.

This does not need to be backported.
src/quic_conn.c