Explorar o código

Correct defeatest attitude in crypto_new_cipher_env

svn:r201
Nick Mathewson %!s(int64=22) %!d(string=hai) anos
pai
achega
3a89d27e66
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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);