mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Correct defeatest attitude in crypto_new_cipher_env
svn:r201
This commit is contained in:
@@ -208,6 +208,7 @@ crypto_cipher_env_t *crypto_new_cipher_env(int type)
|
||||
if (key_len && !(env->key = (unsigned char *)malloc(key_len)))
|
||||
goto err;
|
||||
|
||||
return env;
|
||||
err:
|
||||
if (env->key)
|
||||
free(env->key);
|
||||
|
||||
Reference in New Issue
Block a user