]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/VariableAuthenticated/RuntimeDxe/Variable.c
SecurityPkg Variable: Add NULL pointer check.
[mirror_edk2.git] / SecurityPkg / VariableAuthenticated / RuntimeDxe / Variable.c
index 7d7bc9e0e121314aae642066500eb431ab6df2e1..6a33a78da45ee9bcc83ef7a7435046a9b8f86d4c 100644 (file)
@@ -860,6 +860,7 @@ Reclaim (
     if (EFI_ERROR (Status)) {\r
       goto Done;\r
     }\r
+    ASSERT ((NewPubKeyIndex != NULL) && (NewPubKeyStore != NULL));\r
 \r
     //\r
     // Refresh the PubKeyIndex for all valid variables (ADDED and IN_DELETED_TRANSITION).\r