MINOR: quic-be: allow the preparation of 0-RTT packets

A QUIC server never sends 0-RTT packets contrary to the client.

This very simple modification allow the the preparation of 0-RTT packets
with early data as encryption level (->eel).
This commit is contained in:
Frederic Lecaille 2025-08-02 10:28:38 +02:00
parent 6e14365a5b
commit ac1d3eba88

View File

@ -626,7 +626,7 @@ static int qc_prep_pkts(struct quic_conn *qc, struct buffer *buf,
struct quic_enc_level *next_qel;
int probe, must_ack;
if (qel == qc->eel) {
if (!qc_is_back(qc) && qel == qc->eel) {
/* Next encryption level */
continue;
}