diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-11-25 10:36:34 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-11-25 22:29:59 -0500 |
commit | 10fdee628552bca65ddb86b17e0b057628ad3703 (patch) | |
tree | 3091b28e5cd359f38d0a25d0199099909339e3f5 /src/test/test_workqueue.c | |
parent | dedea28c2ef59eb86f5d9704e5609ae13fa8b3c2 (diff) | |
download | tor-10fdee628552bca65ddb86b17e0b057628ad3703.tar.gz tor-10fdee628552bca65ddb86b17e0b057628ad3703.zip |
Add crypto-initializer functions to those whose return values must be checked
Diffstat (limited to 'src/test/test_workqueue.c')
-rw-r--r-- | src/test/test_workqueue.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/test_workqueue.c b/src/test/test_workqueue.c index 6edfd313cb..1202f80fa3 100644 --- a/src/test/test_workqueue.c +++ b/src/test/test_workqueue.c @@ -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; |