From ad83f5b97ca390657e1d48aea4f8fd9c7195f83b Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 19 Mar 2003 21:27:21 +0000 Subject: [PATCH] Correct defeatest attitude in crypto_new_cipher_env svn:r201 --- trunk/src/common/crypto.c | 1 + 1 file changed, 1 insertion(+) diff --git a/trunk/src/common/crypto.c b/trunk/src/common/crypto.c index a8ecbd9dd6..3ddb854f64 100644 --- a/trunk/src/common/crypto.c +++ b/trunk/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);