mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-08-08 00:14:14 +00:00
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>
This commit is contained in:
parent
ce78d2d250
commit
7430b90148
3
shim.c
3
shim.c
@ -231,8 +231,7 @@ static CHECK_STATUS check_db_cert(CHAR16 *dbname, WIN_CERTIFICATE_EFI_PKCS *data
|
|||||||
Cert->SignatureData,
|
Cert->SignatureData,
|
||||||
CertList->SignatureSize,
|
CertList->SignatureSize,
|
||||||
hash, SHA256_DIGEST_SIZE);
|
hash, SHA256_DIGEST_SIZE);
|
||||||
}
|
if (IsFound)
|
||||||
if (IsFound) {
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user