aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gost_pmeth.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gost_pmeth.c b/gost_pmeth.c
index 2d580ae..ca824ff 100644
--- a/gost_pmeth.c
+++ b/gost_pmeth.c
@@ -633,11 +633,13 @@ static int pkey_gost_mac_ctrl_str(EVP_PKEY_CTX *ctx,
}
param = get_encryption_params(obj);
+ ASN1_OBJECT_free(obj);
if (param == NULL) {
GOSTerr(GOST_F_PKEY_GOST_MAC_CTRL_STR, GOST_R_INVALID_MAC_PARAMS);
return 0;
}
+
return pkey_gost_mac_ctrl(ctx, EVP_PKEY_CTRL_GOST_PARAMSET, 0,
(void *)param);
}