Adjust all accesses to EVP_MD_CTX to use accessor functions.
[openssl.git] / crypto / cms / cms_asn1.c
index e044cf519b906fd049e5c553bd41c3165f5e5347..7aafc8dab07ca00de7e5bbfa5d3221d295e0a2ee 100644 (file)
@@ -95,8 +95,7 @@ static int cms_si_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
         CMS_SignerInfo *si = (CMS_SignerInfo *)*pval;
         EVP_PKEY_free(si->pkey);
         X509_free(si->signer);
-        if (si->pctx)
-            EVP_MD_CTX_cleanup(&si->mctx);
+        EVP_MD_CTX_destroy(si->mctx);
     }
     return 1;
 }