mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-25 14:35:42 +00:00
Merge pull request #5235 from paul-elliott-arm/fix_test_suite_ssl_2.x
Backport 2.x: Fix test_suite_ssl compilation errors with GCC11
This commit is contained in:
commit
3f5c2232f0
3
ChangeLog.d/fix_compilation_ssl_tests.txt
Normal file
3
ChangeLog.d/fix_compilation_ssl_tests.txt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
Bugfix
|
||||||
|
* Fix an uninitialized variable warning in test_suite_ssl.function with GCC
|
||||||
|
version 11.
|
|
@ -2248,8 +2248,8 @@ exit:
|
||||||
void ssl_mock_sanity( )
|
void ssl_mock_sanity( )
|
||||||
{
|
{
|
||||||
enum { MSGLEN = 105 };
|
enum { MSGLEN = 105 };
|
||||||
unsigned char message[MSGLEN];
|
unsigned char message[MSGLEN] = { 0 };
|
||||||
unsigned char received[MSGLEN];
|
unsigned char received[MSGLEN] = { 0 };
|
||||||
mbedtls_mock_socket socket;
|
mbedtls_mock_socket socket;
|
||||||
|
|
||||||
mbedtls_mock_socket_init( &socket );
|
mbedtls_mock_socket_init( &socket );
|
||||||
|
|
Loading…
Reference in a new issue