Commit 3a89d27e authored by Nick Mathewson's avatar Nick Mathewson 🐘
Browse files

Correct defeatest attitude in crypto_new_cipher_env


svn:r201
parent 51ed9750
Loading
Loading
Loading
Loading
+1 −0
Changes for src/common/crypto.c: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -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);