mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-26 01:01:04 +00:00
Use SSL record structure when skipping over unexpected record
This commit is contained in:
parent
af5bcfc765
commit
2528ee09ac
|
@ -5889,8 +5889,7 @@ static int ssl_get_next_record( mbedtls_ssl_context *ssl )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Skip unexpected record (but not whole datagram) */
|
/* Skip unexpected record (but not whole datagram) */
|
||||||
ssl->next_record_offset = ssl->in_msglen
|
ssl->next_record_offset = rec.buf_len;
|
||||||
+ mbedtls_ssl_in_hdr_len( ssl );
|
|
||||||
|
|
||||||
MBEDTLS_SSL_DEBUG_MSG( 1, ( "discarding unexpected record "
|
MBEDTLS_SSL_DEBUG_MSG( 1, ( "discarding unexpected record "
|
||||||
"(header)" ) );
|
"(header)" ) );
|
||||||
|
|
Loading…
Reference in a new issue