]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/VariableAuthenticated/RuntimeDxe/AuthService.c
Fix a bug about the “VendorKey” variable update logic.
[mirror_edk2.git] / SecurityPkg / VariableAuthenticated / RuntimeDxe / AuthService.c
index 1f930e8a11e820d1dbe83025bf6c126c22675f21..71de272bf2e5f6dd0848a4b255927e1f3ca68252 100644 (file)
@@ -1089,7 +1089,7 @@ ProcessVarWithPk (
       return Status;\r
     }\r
 \r
-    if (mPlatformMode != SETUP_MODE) {\r
+    if (mPlatformMode != SETUP_MODE || IsPk) {\r
       Status = VendorKeyIsModified ();\r
     }\r
   } else if (mPlatformMode == USER_MODE) {\r