Skip to content

Commit

Permalink
Note RFC 9000 19.19 requirement
Browse files Browse the repository at this point in the history
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from #21429)
  • Loading branch information
paulidale committed Aug 4, 2023
1 parent 5ac7ee4 commit 73ef6e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ssl/quic/quic_wire.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 73ef6e6

Please sign in to comment.