There is no need to test <qel>. Furthermore the packet type has already checked
by the caller.
pkt->aad_len = pn - beg + pkt->pnl;
qpkt_trace = pkt;
}
- else if (qel) {
+ else {
if (qel->tls_ctx.rx.flags & QUIC_FL_TLS_SECRETS_DCD) {
/* If the packet number space has been discarded, this packet
* will be not parsed.
MT_LIST_APPEND(&qel->rx.pqpkts, &pkt->list);
quic_rx_packet_refinc(pkt);
}
- else {
- TRACE_PROTO("Unknown packet type", QUIC_EV_CONN_TRMHP, qc);
- goto err;
- }
*el = qel;
/* No reference counter incrementation here!!! */