diff --git a/library/ctr_drbg.c b/library/ctr_drbg.c index 047bb2a3e..517b45580 100644 --- a/library/ctr_drbg.c +++ b/library/ctr_drbg.c @@ -584,7 +584,7 @@ int mbedtls_ctr_drbg_random_with_add( void *p_rng, exit: mbedtls_platform_zeroize( add_input, sizeof( add_input ) ); mbedtls_platform_zeroize( tmp, sizeof( tmp ) ); - return( 0 ); + return( ret ); } int mbedtls_ctr_drbg_random( void *p_rng, unsigned char *output,