mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-08-16 02:01:19 +00:00
Fix signature checking
We could potentially find a valid signature and then fail to validate it due to not breaking out of the outer while loop.
This commit is contained in:
parent
6f16162653
commit
058c0368ad
3
shim.c
3
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);
|
Cert = (EFI_SIGNATURE_DATA *) ((UINT8 *) Cert + CertList->SignatureSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (IsFound)
|
||||||
|
break;
|
||||||
|
|
||||||
dbsize -= CertList->SignatureListSize;
|
dbsize -= CertList->SignatureListSize;
|
||||||
CertList = (EFI_SIGNATURE_LIST *) ((UINT8 *) CertList + CertList->SignatureListSize);
|
CertList = (EFI_SIGNATURE_LIST *) ((UINT8 *) CertList + CertList->SignatureListSize);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user