mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Add crypto-initializer functions to those whose return values must be checked
This commit is contained in:
@@ -390,7 +390,10 @@ main(int argc, char **argv)
|
||||
|
||||
init_logging(1);
|
||||
network_init();
|
||||
crypto_global_init(1, NULL, NULL);
|
||||
if (crypto_global_init(1, NULL, NULL) < 0) {
|
||||
printf("Couldn't initialize crypto subsystem; exiting.\n");
|
||||
return 1;
|
||||
}
|
||||
if (crypto_seed_rng() < 0) {
|
||||
printf("Couldn't seed RNG; exiting.\n");
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user