diff --git a/src/quic_tx.c b/src/quic_tx.c index 01b53b60e..342a2dc58 100644 --- a/src/quic_tx.c +++ b/src/quic_tx.c @@ -663,9 +663,7 @@ static int qc_prep_pkts(struct quic_conn *qc, struct buffer *buf, * to stay under MTU limit. */ if (!dglen) { - if (cc) - end = pos + QUIC_MIN_CC_PKTSIZE; - else if (!quic_peer_validated_addr(qc) && qc_is_listener(qc)) + if (!quic_peer_validated_addr(qc) && qc_is_listener(qc)) end = pos + QUIC_MIN(qc->path->mtu, quic_may_send_bytes(qc)); else end = pos + qc->path->mtu;