mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-26 16:49:47 -04:00
BUG/MINOR: quic: fix potential null dereference
This is not a real issue because found_in_dcid can not be set if qc is NULL.
This commit is contained in:
parent
76f47caacc
commit
c6fab98f9b
1 changed files with 1 additions and 1 deletions
|
|
@ -3923,7 +3923,7 @@ static struct quic_conn *retrieve_qc_conn_from_cid(struct quic_rx_packet *pkt,
|
|||
*
|
||||
* node.leaf_p is first checked to avoid unnecessary locking.
|
||||
*/
|
||||
if (found_in_dcid && qc->odcid_node.node.leaf_p) {
|
||||
if (qc && found_in_dcid && qc->odcid_node.node.leaf_p) {
|
||||
HA_RWLOCK_WRLOCK(QUIC_LOCK, &l->rx.cids_lock);
|
||||
ebmb_delete(&qc->odcid_node);
|
||||
HA_RWLOCK_WRUNLOCK(QUIC_LOCK, &l->rx.cids_lock);
|
||||
|
|
|
|||
Loading…
Reference in a new issue