summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shim.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/shim.c b/shim.c
index 8c039159..816688e1 100644
--- a/shim.c
+++ b/shim.c
@@ -237,6 +237,9 @@ static CHECK_STATUS check_db_cert_in_ram(EFI_SIGNATURE_LIST *CertList,
Cert = (EFI_SIGNATURE_DATA *) ((UINT8 *) Cert + CertList->SignatureSize);
}
+ if (IsFound)
+ break;
+
dbsize -= CertList->SignatureListSize;
CertList = (EFI_SIGNATURE_LIST *) ((UINT8 *) CertList + CertList->SignatureListSize);
}