summaryrefslogtreecommitdiffstats
path: root/SecurityPkg
diff options
context:
space:
mode:
authorzodf0055980 <zodf0055980@gmail.com>2024-09-02 14:07:37 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-09-02 12:17:33 +0000
commita5f543272899fcf3b04e0665ba87164fb19f564a (patch)
treebb245dc94f331de42e0223bf89c48520153b7392 /SecurityPkg
parent50871ee0ecd63bb9885068fb0b3ea1b47f5e2bb4 (diff)
downloadedk2-a5f543272899fcf3b04e0665ba87164fb19f564a.tar.gz
SecurityPkg: Fix break missing at TPM_ALG_KEYEDHASH case
According issue #5509, case TPM_ALG_KEYEDHASH is missing the break statement. Signed-off-by: zodf0055980 <zodf0055980@gmail.com>
Diffstat (limited to 'SecurityPkg')
-rw-r--r--SecurityPkg/Library/Tpm2CommandLib/Tpm2Object.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/SecurityPkg/Library/Tpm2CommandLib/Tpm2Object.c b/SecurityPkg/Library/Tpm2CommandLib/Tpm2Object.c
index 888979e969..3aaf012d7e 100644
--- a/SecurityPkg/Library/Tpm2CommandLib/Tpm2Object.c
+++ b/SecurityPkg/Library/Tpm2CommandLib/Tpm2Object.c
@@ -178,6 +178,7 @@ Tpm2ReadPublic (
return EFI_UNSUPPORTED;
}
+ break;
case TPM_ALG_SYMCIPHER:
OutPublic->publicArea.parameters.symDetail.algorithm = SwapBytes16 (ReadUnaligned16 ((UINT16 *)Buffer));
Buffer += sizeof (UINT16);