mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 04:15:43 +01:00
Fix possibly-lossy conversion warning from MSVC
ssl_tls.c(4876): warning C4267: '=': conversion from 'size_t' to 'uint8_t', possible loss of data
This commit is contained in:
parent
ec01408389
commit
f3a15b3de0
@ -4873,7 +4873,9 @@ static int ssl_parse_record_header( mbedtls_ssl_context const *ssl,
|
||||
return( MBEDTLS_ERR_SSL_INVALID_RECORD );
|
||||
}
|
||||
|
||||
rec->cid_len = rec_hdr_cid_len;
|
||||
/* configured CID len is guaranteed at most 255, see
|
||||
* MBEDTLS_SSL_CID_OUT_LEN_MAX in check_config.h */
|
||||
rec->cid_len = (uint8_t) rec_hdr_cid_len;
|
||||
memcpy( rec->cid, buf + rec_hdr_cid_offset, rec_hdr_cid_len );
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user