From: Nick Mathewson Date: Wed, 19 Mar 2003 21:27:21 +0000 (+0000) Subject: Correct defeatest attitude in crypto_new_cipher_env X-Git-Tag: tor-0.0.2pre8~267 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3a89d27e66ffa28cffc9806ad68023d8cbc6c0d5;p=thirdparty%2Ftor.git Correct defeatest attitude in crypto_new_cipher_env svn:r201 --- 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);