From: Pauli Date: Thu, 13 Jul 2023 03:43:46 +0000 (+1000) Subject: Note RFC 9000 19.19 requirement X-Git-Tag: openssl-3.2.0-alpha1~317 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=73ef6e6f0f14c2cf2231ee72f3d98757310f1e31;p=thirdparty%2Fopenssl.git Note RFC 9000 19.19 requirement Reviewed-by: Tim Hudson Reviewed-by: Hugo Landau (Merged from https://github.com/openssl/openssl/pull/21429) --- diff --git a/ssl/quic/quic_wire.c b/ssl/quic/quic_wire.c index 22214069ec2..4b50f5984b6 100644 --- a/ssl/quic/quic_wire.c +++ b/ssl/quic/quic_wire.c @@ -372,6 +372,10 @@ int ossl_quic_wire_encode_frame_conn_close(WPACKET *pkt, || !WPACKET_quic_write_vlint(pkt, f->error_code)) return 0; + /* + * RFC 9000 s. 19.19: The application-specific variant of CONNECTION_CLOSE + * (type 0x1d) does not include this field. + */ if (!f->is_app && !WPACKET_quic_write_vlint(pkt, f->frame_type)) return 0;