소스 검색

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);