mirror of
https://github.com/cuberite/polarssl.git
synced 2025-10-04 11:09:00 -04:00
Fix uninitialised return value.
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
parent
a1dc3e5a60
commit
5d7e61fb61
@ -64,6 +64,9 @@ int dummy_random( void *p_rng, unsigned char *output, size_t output_len )
|
|||||||
if( p_rng != NULL ) {
|
if( p_rng != NULL ) {
|
||||||
//use mbedtls_ctr_drbg_random to find bugs in it
|
//use mbedtls_ctr_drbg_random to find bugs in it
|
||||||
ret = mbedtls_ctr_drbg_random(p_rng, output, output_len);
|
ret = mbedtls_ctr_drbg_random(p_rng, output, output_len);
|
||||||
|
} else {
|
||||||
|
//fall through to pseudo-random
|
||||||
|
ret = 0;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
(void) p_rng;
|
(void) p_rng;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user