mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-11 14:15:39 +00:00
Fix alignment in record header parsing routine
This commit is contained in:
parent
e03eb7bb64
commit
618176126c
|
@ -4794,14 +4794,14 @@ static int ssl_parse_record_header( mbedtls_ssl_context const *ssl,
|
|||
|
||||
size_t const rec_hdr_ctr_len = 8;
|
||||
#if defined(MBEDTLS_SSL_PROTO_DTLS)
|
||||
uint32_t rec_epoch;
|
||||
uint32_t rec_epoch;
|
||||
size_t const rec_hdr_ctr_offset = rec_hdr_version_offset +
|
||||
rec_hdr_version_len;
|
||||
|
||||
#if defined(MBEDTLS_SSL_DTLS_CONNECTION_ID)
|
||||
size_t const rec_hdr_cid_offset = rec_hdr_ctr_offset +
|
||||
rec_hdr_ctr_len;
|
||||
size_t rec_hdr_cid_len = 0;
|
||||
size_t rec_hdr_cid_len = 0;
|
||||
#endif /* MBEDTLS_SSL_DTLS_CONNECTION_ID */
|
||||
#endif /* MBEDTLS_SSL_PROTO_DTLS */
|
||||
|
||||
|
|
Loading…
Reference in a new issue