mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 07:37:02 +02:00
BUG/MINOR: quic: Possible crash in quic_cc_conn_io_cb() traces.
Reset the local cc_qc and qc after having released cc_qc. Note that cc_qc == qc. This is required to prevent haproxy from crashing when TRACE_LEAVE() is called. No need to backport.
This commit is contained in:
parent
1ab6126ca7
commit
f3edbc792e
@ -798,6 +798,8 @@ static struct task *quic_cc_conn_io_cb(struct task *t, void *context, unsigned i
|
||||
if (qc_snd_buf(qc, &buf, buf.data, 0) < 0) {
|
||||
TRACE_ERROR("sendto fatal error", QUIC_EV_CONN_IO_CB, qc);
|
||||
quic_release_cc_conn(cc_qc);
|
||||
cc_qc = NULL;
|
||||
qc = NULL;
|
||||
goto leave;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user