mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 20:46:11 +02:00
BUG/MINOR: quic: remove dead code in error path
In quic_rx_pkt_retrieve_conn(), err label is now only used if qc is NULL. Thus, condition on qc can be removed. No need to backport. This issue was reported by coverity on github. This should fix issue #2338.
This commit is contained in:
parent
0a7ab7067f
commit
75e36c57f0
@ -2063,10 +2063,7 @@ static struct quic_conn *quic_rx_pkt_retrieve_conn(struct quic_rx_packet *pkt,
|
||||
return qc;
|
||||
|
||||
err:
|
||||
if (qc)
|
||||
qc->cntrs.dropped_pkt++;
|
||||
else
|
||||
HA_ATOMIC_INC(&prx_counters->dropped_pkt);
|
||||
HA_ATOMIC_INC(&prx_counters->dropped_pkt);
|
||||
|
||||
TRACE_LEAVE(QUIC_EV_CONN_LPKT);
|
||||
return NULL;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user