]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Hash2DxeCrypto/Hash2DxeCrypto.c
Fix typo in BaseCrypto2HashInit() which causes sanity check incorrect.
[mirror_edk2.git] / SecurityPkg / Hash2DxeCrypto / Hash2DxeCrypto.c
index 6a7ecf2a2d15828f737652e90f23fcec0e1ca949..dab02992362ed0c66caebfc769af69f89694317e 100644 (file)
@@ -454,7 +454,7 @@ BaseCrypto2HashInit (
   // Consistency Check\r
   //\r
   Instance = HASH2_INSTANCE_DATA_FROM_THIS(This);\r
-  if ((Instance->HashContext != NULL) || (Instance->HashInfoContext != HashInfo)) {\r
+  if ((Instance->HashContext != NULL) || (Instance->HashInfoContext != NULL)) {\r
     return EFI_ALREADY_STARTED;\r
   }\r
 \r