summaryrefslogtreecommitdiff
path: root/Cryptlib/OpenSSL/crypto/bio/bss_acpt.c
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2021-03-10 15:05:22 -0500
committerPeter Jones <pjones@redhat.com>2021-03-11 09:49:02 -0500
commitdcf9a122ec68016a5d4e9da4972b9261cd7f6686 (patch)
tree1b1c25971937e3bc535cb21e4a3c7c47b35d4aa1 /Cryptlib/OpenSSL/crypto/bio/bss_acpt.c
parentcf5efd5a982e597c9e767de1cf51f2ef1512c02e (diff)
downloadefi-boot-shim-dcf9a122ec68016a5d4e9da4972b9261cd7f6686.tar.gz
efi-boot-shim-dcf9a122ec68016a5d4e9da4972b9261cd7f6686.zip
set_sbat_uefi_variable(): avoid comparing unsafe data
A few cleanups: - Ensure that the data we get from get_variable() is at least big enough to actually be an SBAT variable - Only try to delete if the variable is actually set - Don't set the variable again if deleting it failed - We don't actually need to get the size of the variable, allocate, and then get the variable; get_variable() does the allocation for us. - Don't compare the variable data when get_variable() failed Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'Cryptlib/OpenSSL/crypto/bio/bss_acpt.c')
0 files changed, 0 insertions, 0 deletions