diff --git a/src/quic_tx.c b/src/quic_tx.c index f6976bc0e..b1cfba6a8 100644 --- a/src/quic_tx.c +++ b/src/quic_tx.c @@ -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);