]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Tcg/TcgDxe/TcgDxe.c
Fix potential NULL pointer dereference issue in TcgDxe & TreeDxe.
[mirror_edk2.git] / SecurityPkg / Tcg / TcgDxe / TcgDxe.c
index bf9c7521aaef71569a10af30d66322f36f4bcc41..282505dbc77b477c766a46c3bca07365ac5f005a 100644 (file)
@@ -1021,7 +1021,7 @@ MeasureAllBootVariables (
              &BootCount,\r
              (VOID **) &BootOrder\r
              );\r
-  if (Status == EFI_NOT_FOUND) {\r
+  if (Status == EFI_NOT_FOUND || BootOrder == NULL) {\r
     return EFI_SUCCESS;\r
   }\r
 \r