mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-01 04:20:45 +00:00
Add test that mbedtls_mpi_free() accepts NULL parameter
This commit is contained in:
parent
54c91dd235
commit
56b661cbf8
@ -219,9 +219,10 @@ void mpi_invalid_param( )
|
|||||||
TEST_INVALID_PARAM_RET( MBEDTLS_ERR_MPI_BAD_INPUT_DATA,
|
TEST_INVALID_PARAM_RET( MBEDTLS_ERR_MPI_BAD_INPUT_DATA,
|
||||||
mbedtls_mpi_inv_mod( NULL, &X, &X ) );
|
mbedtls_mpi_inv_mod( NULL, &X, &X ) );
|
||||||
|
|
||||||
|
mbedtls_mpi_free( NULL );
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
return;
|
return;
|
||||||
|
|
||||||
}
|
}
|
||||||
/* END_CASE */
|
/* END_CASE */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user