diff --git a/library/entropy_poll.c b/library/entropy_poll.c index 5250a7bfe..27465f27d 100644 --- a/library/entropy_poll.c +++ b/library/entropy_poll.c @@ -205,13 +205,13 @@ int mbedtls_null_entropy_poll( void *data, { ((void) data); ((void) output); - *olen = 0; + *olen = 0; if( len < sizeof(unsigned char) ) return( 0 ); + output[0] = 0; *olen = sizeof(unsigned char); - return( 0 ); } #endif