mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Always treat failure to allocate an RSA key as an unrecoverable allocation error
This commit is contained in:
@@ -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
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user