mirror of
https://github.com/espressif/mbedtls.git
synced 2025-06-03 23:14:40 +08:00
Use equality checking for NULL value
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
parent
f9728137d8
commit
496cd37bac
@ -188,7 +188,7 @@ int mbedtls_mpi_mod_mul( mbedtls_mpi_mod_residue *X,
|
|||||||
return MBEDTLS_ERR_MPI_BAD_INPUT_DATA;
|
return MBEDTLS_ERR_MPI_BAD_INPUT_DATA;
|
||||||
|
|
||||||
mbedtls_mpi_uint *T = mbedtls_calloc( N->limbs * 2 + 1, ciL );
|
mbedtls_mpi_uint *T = mbedtls_calloc( N->limbs * 2 + 1, ciL );
|
||||||
if( !T )
|
if( T == NULL )
|
||||||
return MBEDTLS_ERR_MPI_ALLOC_FAILED;
|
return MBEDTLS_ERR_MPI_ALLOC_FAILED;
|
||||||
|
|
||||||
mbedtls_mpi_mod_raw_mul( X->p, A->p, B->p, N, T );
|
mbedtls_mpi_mod_raw_mul( X->p, A->p, B->p, N, T );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user