summaryrefslogtreecommitdiff
path: root/lib/simple_file.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2021-09-03 22:01:36 +0200
committerPeter Jones <pjones@redhat.com>2025-01-17 14:48:54 -0500
commitb560c523623bf8b32142220401de86ed44338c3d (patch)
tree0dc2f63c53041118386851c9a7da249f4d49fc89 /lib/simple_file.c
parent3e6089582206f868dc6aba828c2b5f6490ed2777 (diff)
downloadefi-boot-shim-b560c523623bf8b32142220401de86ed44338c3d.tar.gz
efi-boot-shim-b560c523623bf8b32142220401de86ed44338c3d.zip
MokManager: remove redundant logical constraints
CertList->SignatureSize is of type UINT32 which is always positive. If CertList->SignatureListSize == 0, then CertList->SignatureListSize <= CertList->SignatureSize is also true. Remove the redundant CertList->SignatureListSize == 0 checks. A message "Corrupted signature list" is better suited then "Invalid MOK detected! Ignoring MOK List." in this case. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'lib/simple_file.c')
0 files changed, 0 insertions, 0 deletions