]> git.proxmox.com Git - mirror_edk2.git/commitdiff
SecurityPkg: Fix wrong cert data measurement in DBX path
authorChao Zhang <chao.b.zhang@intel.com>
Tue, 9 Jun 2015 05:20:06 +0000 (05:20 +0000)
committerczhang46 <czhang46@Edk2>
Tue, 9 Jun 2015 05:20:06 +0000 (05:20 +0000)
Fix wrong cert data measurement when image is rejected by DBX

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by: Long Qin <qin.long@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17591 6f19259b-4bc3-4df7-8a09-765794883524

SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.c

index 9a6172353047c483977508aeb38c6f4dee6f5d14..d7e286b735c7087dbb71707f9fae4caa73cb7bf2 100644 (file)
@@ -1294,7 +1294,7 @@ IsForbiddenByDbx (
                         mImageDigestSize\r
                         );\r
         if (IsForbidden) {\r
-          SecureBootHook (EFI_IMAGE_SECURITY_DATABASE1, &gEfiImageSecurityDatabaseGuid, CertList->SignatureSize, Cert);\r
+          SecureBootHook (EFI_IMAGE_SECURITY_DATABASE1, &gEfiImageSecurityDatabaseGuid, CertList->SignatureSize, CertData);\r
           goto Done;\r
         }\r
 \r