mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 15:05:41 +00:00
Use SSL record structure when skipping over unexpected record
This commit is contained in:
parent
519f15dbba
commit
4acada35f5
|
@ -6054,8 +6054,7 @@ static int ssl_get_next_record( mbedtls_ssl_context *ssl )
|
|||
#endif
|
||||
|
||||
/* Skip unexpected record (but not whole datagram) */
|
||||
ssl->next_record_offset = ssl->in_msglen
|
||||
+ mbedtls_ssl_in_hdr_len( ssl );
|
||||
ssl->next_record_offset = rec.buf_len;
|
||||
|
||||
MBEDTLS_SSL_DEBUG_MSG( 1, ( "discarding unexpected record "
|
||||
"(header)" ) );
|
||||
|
|
Loading…
Reference in a new issue