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 69aa486aa6
commit 78af867ebb

View File

@ -607,7 +607,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 (objt_listener(qc->target) && qel == qc->eel) {
/* Next encryption level */
continue;
}