CMS: add CMS_SignedData_verify(), a variant of CMS_verify() with extensions
[openssl.git] / crypto / cms / cms_env.c
index 471676d2f5eab9dcb9b3842d79cb947d60d5070b..4648cd137294835e05674b38b77621026a75b0e4 100644 (file)
@@ -270,7 +270,7 @@ BIO *CMS_EnvelopedData_decrypt(CMS_EnvelopedData *env, BIO *detached_data,
 
  end:
     if (ci != NULL)
-        ci->d.envelopedData = NULL;
+        ci->d.envelopedData = NULL; /* do not indirectly free |env| */
     CMS_ContentInfo_free(ci);
     if (!res) {
         BIO_free(bio);