summaryrefslogtreecommitdiffstats
path: root/src/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto')
-rw-r--r--src/crypto/entropy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crypto/entropy.c b/src/crypto/entropy.c
index cb3d54d8f..03e7290a3 100644
--- a/src/crypto/entropy.c
+++ b/src/crypto/entropy.c
@@ -422,7 +422,8 @@ int get_entropy_input_tmp ( unsigned int num_samples, uint8_t *tmp,
int rc;
/* Enable entropy gathering */
- entropy_enable();
+ if ( ( rc = entropy_enable() ) != 0 )
+ return rc;
/* Perform mandatory startup tests, if not yet performed */
for ( ; startup_tested < startup_test_count() ; startup_tested++ ) {