summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2003-03-19 21:27:21 +0000
committerNick Mathewson <nickm@torproject.org>2003-03-19 21:27:21 +0000
commit3a89d27e66ffa28cffc9806ad68023d8cbc6c0d5 (patch)
tree28749a576b9d3e636320cf829b29b01b7daeb6d1 /src/common
parent51ed97504b4d7246537f99993f64fc422d9e5d6d (diff)
downloadtor-3a89d27e66ffa28cffc9806ad68023d8cbc6c0d5.tar.gz
tor-3a89d27e66ffa28cffc9806ad68023d8cbc6c0d5.zip
Correct defeatest attitude in crypto_new_cipher_env
svn:r201
Diffstat (limited to 'src/common')
-rw-r--r--src/common/crypto.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c
index a8ecbd9dd6..3ddb854f64 100644
--- a/src/common/crypto.c
+++ b/src/common/crypto.c
@@ -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);