BUG/MINOR: quic: Malformed CONNECTION_CLOSE frame

This bug arrived with this commit:
      MINOR: quic: Avoid zeroing frame structures
Before this latter, the CONNECTION_CLOSE was zeroed, especially the "reason phrase
length".

Restablish this behavior.

No need to backport.
This commit is contained in:
Frédéric Lécaille 2023-11-15 11:19:57 +01:00
parent 953c7dc2b9
commit 392640a61b

View File

@ -2158,11 +2158,13 @@ static void qc_build_cc_frm(struct quic_conn *qc, struct quic_enc_level *qel,
else {
out->type = QUIC_FT_CONNECTION_CLOSE_APP;
out->connection_close.error_code = qc->err.code;
out->connection_close.reason_phrase_len = 0;
}
}
else {
out->type = QUIC_FT_CONNECTION_CLOSE;
out->connection_close.error_code = qc->err.code;
out->connection_close.reason_phrase_len = 0;
}
TRACE_LEAVE(QUIC_EV_CONN_BFRM, qc);