Change 0-checks to NULL-checks in ecp.c

Signed-off-by: David Horstmann <[email protected]>
This commit is contained in:
David Horstmann
2022-11-07 14:48:38 +00:00
parent 0955f82642
commit 9fc2f959b3
+2 -2
View File
@@ -2051,7 +2051,7 @@ static int ecp_mul_comb_core( const mbedtls_ecp_group *grp, mbedtls_ecp_point *R
int have_rng = 1;
#if defined(MBEDTLS_ECP_NO_INTERNAL_RNG)
if( f_rng == 0 )
if( f_rng == NULL )
have_rng = 0;
#endif
if( have_rng )
@@ -2190,7 +2190,7 @@ final_norm:
*/
int have_rng = 1;
#if defined(MBEDTLS_ECP_NO_INTERNAL_RNG)
if( f_rng == 0 )
if( f_rng == NULL )
have_rng = 0;
#endif
if( have_rng )