diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-06-17 09:19:11 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-06-17 09:19:11 -0400 |
commit | 43a98c7da6183e6e2e20784faed9f1c8aea5086e (patch) | |
tree | fe1a0ecdc8e30d6d93b1941aa953a239f37f205f | |
parent | 8092ae0c4ecc05d2bc058531be976e374febd9cb (diff) | |
parent | c8cb55659acca96530a1d7f54bb96cac84626e17 (diff) | |
download | tor-43a98c7da6183e6e2e20784faed9f1c8aea5086e.tar.gz tor-43a98c7da6183e6e2e20784faed9f1c8aea5086e.zip |
Merge remote-tracking branch 'origin/maint-0.2.6'
-rw-r--r-- | changes/bug16360-failed-crypto-early-init | 7 | ||||
-rw-r--r-- | src/or/main.c | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/changes/bug16360-failed-crypto-early-init b/changes/bug16360-failed-crypto-early-init new file mode 100644 index 0000000000..21972bce52 --- /dev/null +++ b/changes/bug16360-failed-crypto-early-init @@ -0,0 +1,7 @@ + o Minor bugfixes (crypto error-handling): + - If crypto_early_init fails, a typo in a return value from tor_init + means that tor_main continues running, rather than returning + an error value. + Fixes bug 16360; bugfix on d3fb846d8c98 in 0.2.5.2-alpha, + introduced when implementing #4900. + Patch by "teor". diff --git a/src/or/main.c b/src/or/main.c index 5fa3a01500..17177b0df5 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -2515,7 +2515,7 @@ tor_init(int argc, char *argv[]) /* Set up the crypto nice and early */ if (crypto_early_init() < 0) { log_err(LD_GENERAL, "Unable to initialize the crypto subsystem!"); - return 1; + return -1; } /* Initialize the history structures. */ |