aboutsummaryrefslogtreecommitdiff
path: root/src/common/crypto.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r--src/common/crypto.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c
index a8ecbd9dd6..3ddb854f64 100644
--- a/src/common/crypto.c
+++ b/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);