]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Correct defeatest attitude in crypto_new_cipher_env
authorNick Mathewson <nickm@torproject.org>
Wed, 19 Mar 2003 21:27:21 +0000 (21:27 +0000)
committerNick Mathewson <nickm@torproject.org>
Wed, 19 Mar 2003 21:27:21 +0000 (21:27 +0000)
svn:r201

src/common/crypto.c

index a8ecbd9dd67e0bef46412bd39d75b4bf1cfe6bf4..3ddb854f647daace94399188881478acb2654450 100644 (file)
@@ -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);