mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-28 09:39:53 +00:00
Change memcmp call
Previous call used sizeof() function which is not needed. Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
parent
70c0088239
commit
413550c529
@ -195,7 +195,7 @@ int main( int argc, char *argv[] )
|
|||||||
mbedtls_printf( " . Check if both calculated secrets are equal..." );
|
mbedtls_printf( " . Check if both calculated secrets are equal..." );
|
||||||
fflush( stdout );
|
fflush( stdout );
|
||||||
|
|
||||||
ret = memcmp( secret_srv, secret_cli, sizeof( srv_olen ) );
|
ret = memcmp( secret_srv, secret_cli, srv_olen );
|
||||||
if( ret != 0 || ( cli_olen != srv_olen ) )
|
if( ret != 0 || ( cli_olen != srv_olen ) )
|
||||||
{
|
{
|
||||||
mbedtls_printf( " failed\n ! Shared secrets not equal.\n" );
|
mbedtls_printf( " failed\n ! Shared secrets not equal.\n" );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user