]> git.ipfire.org Git - thirdparty/qemu.git/commit
crypto: remove redundant access() checks before loading certs
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 29 Oct 2025 14:12:47 +0000 (14:12 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 3 Nov 2025 10:45:55 +0000 (10:45 +0000)
commit9fe991d0a490e18c64b02540b141ad8c3e2a477e
tree79c5aea4bacc9e8323cfea047166f3d807d7a473
parent2114ae9faaabe4ff1c455811bb38085324af17b7
crypto: remove redundant access() checks before loading certs

The qcrypto_tls_creds_get_path method will perform an access()
check on the file and return a NULL path if it fails. By the
time we get to loading the cert files we know they must exist
on disk and thus the second access() check is redundant.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
crypto/tlscredsx509.c