mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
When RNG seeding fails, die. Backport candidate
svn:r4319
This commit is contained in:
+4
-1
@@ -1230,7 +1230,10 @@ static int tor_init(int argc, char *argv[]) {
|
||||
handle_signals(1);
|
||||
|
||||
crypto_global_init();
|
||||
crypto_seed_rng();
|
||||
if (crypto_seed_rng()) {
|
||||
log_fn(LOG_ERR, "Unable to seed random number generator. Exiting.");
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user