mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-30 11:54:16 +01:00
Adapt record length value after encryption
This commit is contained in:
parent
b17a1a2068
commit
c5aee96855
@ -3464,7 +3464,7 @@ int mbedtls_ssl_write_record( mbedtls_ssl_context *ssl, uint8_t force_flush )
|
||||
return( MBEDTLS_ERR_SSL_INTERNAL_ERROR );
|
||||
}
|
||||
|
||||
ssl->out_msglen = rec.data_len;
|
||||
ssl->out_msglen = len = rec.data_len;
|
||||
ssl->out_len[0] = (unsigned char)( rec.data_len >> 8 );
|
||||
ssl->out_len[1] = (unsigned char)( rec.data_len );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user