aboutsummaryrefslogtreecommitdiff
path: root/src/common/crypto.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-01-25 18:19:09 -0500
committerNick Mathewson <nickm@torproject.org>2011-01-25 18:19:09 -0500
commitbfde636aaddf22f68c090a76aa6387975a57c308 (patch)
tree6014c6ebe3543cde128183aafebf0247bd9b7ee3 /src/common/crypto.c
parent76582442a8baefe1b469f86d35ce2d00f01a00ca (diff)
downloadtor-bfde636aaddf22f68c090a76aa6387975a57c308.tar.gz
tor-bfde636aaddf22f68c090a76aa6387975a57c308.zip
Always treat failure to allocate an RSA key as an unrecoverable allocation error
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r--src/common/crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c
index 4223b10a7f..09d7fc886b 100644
--- a/src/common/crypto.c
+++ b/src/common/crypto.c
@@ -379,7 +379,7 @@ crypto_new_pk_env(void)
RSA *rsa;
rsa = RSA_new();
- if (!rsa) return NULL;
+ tor_assert(rsa);
return _crypto_new_pk_env_rsa(rsa);
}