mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 22:55:38 +01:00
Reintroduce length 0 check for records
This commit is contained in:
parent
8061c6e894
commit
ec01408389
@ -4946,6 +4946,9 @@ static int ssl_parse_record_header( mbedtls_ssl_context const *ssl,
|
||||
rec->buf = buf;
|
||||
rec->buf_len = rec->data_offset + rec->data_len;
|
||||
|
||||
if( rec->data_len == 0 )
|
||||
return( MBEDTLS_ERR_SSL_INVALID_RECORD );
|
||||
|
||||
/*
|
||||
* DTLS-related tests.
|
||||
* Check epoch before checking length constraint because
|
||||
|
Loading…
Reference in New Issue
Block a user