mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02: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
@ -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.
|
* 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);
|
HA_RWLOCK_WRLOCK(QUIC_LOCK, &l->rx.cids_lock);
|
||||||
ebmb_delete(&qc->odcid_node);
|
ebmb_delete(&qc->odcid_node);
|
||||||
HA_RWLOCK_WRUNLOCK(QUIC_LOCK, &l->rx.cids_lock);
|
HA_RWLOCK_WRUNLOCK(QUIC_LOCK, &l->rx.cids_lock);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user