浏览代码

Correct defeatest attitude in crypto_new_cipher_env

svn:r201
Nick Mathewson 22 年之前
父节点
当前提交
3a89d27e66
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/common/crypto.c

+ 1 - 0
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);