mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-20 12:46:56 +00:00
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:
parent
953c7dc2b9
commit
392640a61b
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user