Always treat failure to allocate an RSA key as an unrecoverable allocation error

This commit is contained in:
Nick Mathewson
2011-01-25 18:19:09 -05:00
parent 76582442a8
commit bfde636aad
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -0,0 +1,3 @@
o Minor code simplifications and refactorings
- Always treat failure to allocate an RSA key as an unrecoverable
allocation error.
+1 -1
View File
@@ -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);
}