->qc (QUIC connection) member of packet structure were badly initialized
when received as second Initial packet (from picoquic -Q for instance).
This leaded to corrupt the quic_conn structure with random behaviors
as size effects. This bug came with this commit:
"MINOR: quic: Possible wrong connection identification"
}
HA_RWLOCK_WRUNLOCK(QUIC_LOCK, &l->rx.cids_lock);
- pkt->qc = qc;
if (n == &qc->odcid_node) {
/* Enqueue this packet. */
+ pkt->qc = qc;
MT_LIST_APPEND(&l->rx.pkts, &pkt->rx_list);
/* Try to accept a new connection. */
listener_accept(l);
else {
quic_conn_free(qc);
qc = ebmb_entry(n, struct quic_conn, odcid_node);
+ pkt->qc = qc;
}
/* This is the DCID node sent in this packet by the client. */