New utility functions for encryptedData content type which will also be used
[openssl.git] / crypto / cms / cms_asn1.c
index 918dd0f30c7c16a48e843342f830753d4b2d6222..b9521c9a5af44cd487fa0833932454a6684828a1 100644 (file)
@@ -216,7 +216,7 @@ ASN1_SEQUENCE(CMS_OtherRecipientInfo) = {
 static int cms_ri_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
                                                        void *exarg)
        {
-       if(operation == ASN1_OP_FREE_POST)
+       if(operation == ASN1_OP_FREE_PRE)
                {
                CMS_RecipientInfo *ri = (CMS_RecipientInfo *)*pval;
                if (ri->type == CMS_RECIPINFO_TRANS)