diff options
Diffstat (limited to 'gost_pmeth.c')
-rw-r--r-- | gost_pmeth.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gost_pmeth.c b/gost_pmeth.c index 2ef949d..9a01822 100644 --- a/gost_pmeth.c +++ b/gost_pmeth.c @@ -638,11 +638,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); } |