From 7430b90148438b6e23b316be93aa04cba32561ca Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Thu, 6 Sep 2012 12:13:44 -0400 Subject: [PATCH] Break out of our db checking loop at the appropriate time. The break in check_db_cert is at the wrong level due to a typo in indentation, and as a result only the last cert in the list can correctly match. Rectify that. Signed-off-by: Peter Jones --- shim.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/shim.c b/shim.c index 6a3c054..5982509 100644 --- a/shim.c +++ b/shim.c @@ -231,9 +231,8 @@ static CHECK_STATUS check_db_cert(CHAR16 *dbname, WIN_CERTIFICATE_EFI_PKCS *data Cert->SignatureData, CertList->SignatureSize, hash, SHA256_DIGEST_SIZE); - } - if (IsFound) { - break; + if (IsFound) + break; } Cert = (EFI_SIGNATURE_DATA *) ((UINT8 *) Cert + CertList->SignatureSize);