diff options
| author | Peter Jones <pjones@redhat.com> | 2012-09-06 11:08:09 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2012-09-06 12:13:44 -0400 |
| commit | 3c2f1d6c3ded5e0d06878c7c72f0e479aed66807 (patch) | |
| tree | 14cba7bea62b983139a4ac238520b1bad41c27c0 | |
| parent | 3682a8954318b82e23e8028006ce956ff4f20a8f (diff) | |
| download | efi-boot-shim-3c2f1d6c3ded5e0d06878c7c72f0e479aed66807.tar.gz efi-boot-shim-3c2f1d6c3ded5e0d06878c7c72f0e479aed66807.zip | |
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 <pjones@redhat.com>
| -rw-r--r-- | shim.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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); |
