mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-11 04:45:35 +00:00
Fix assertion in mbedtls_ssl_write_record()
This commit is contained in:
parent
551835d5e7
commit
554b0af195
|
@ -3363,7 +3363,7 @@ int mbedtls_ssl_write_record( mbedtls_ssl_context *ssl, uint8_t force_flush )
|
||||||
* the remaining space in the datagram. */
|
* the remaining space in the datagram. */
|
||||||
if( ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM )
|
if( ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM )
|
||||||
{
|
{
|
||||||
ret = ssl_get_maximum_datagram_size( ssl );
|
ret = ssl_get_remaining_space_in_datagram( ssl );
|
||||||
if( ret < 0 )
|
if( ret < 0 )
|
||||||
return( ret );
|
return( ret );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue