]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Pkcs7Verify/Pkcs7VerifyDxe/Pkcs7VerifyDxe.c
SecurityPkg: Fix one returned code issue in P7Verify Protocol
[mirror_edk2.git] / SecurityPkg / Pkcs7Verify / Pkcs7VerifyDxe / Pkcs7VerifyDxe.c
index 13c91382dce8faf86c552ce76288dd84721f8c79..07fdf552be17cfefc9206146eaa779d1d849b030 100644 (file)
@@ -833,6 +833,13 @@ VerifyBuffer (
     return EFI_UNSUPPORTED;\r
   }\r
   if (AttachedData != NULL) {\r
+    if (InData != NULL) {\r
+      //\r
+      // The embedded content is found in SignedData but InData is not NULL\r
+      //\r
+      Status = EFI_UNSUPPORTED;\r
+      goto _Exit;\r
+    }\r
     //\r
     // PKCS7-formatted signedData with attached content; Use the embedded\r
     // content for verification\r