Skip to content
Snippets Groups Projects
Commit 08cb175a authored by Daniel P. Berrangé's avatar Daniel P. Berrangé
Browse files

crypto: avoid passing NULL to access() syscall


The qcrypto_tls_creds_x509_sanity_check() checks whether
certs exist by calling access(). It is valid for this
method to be invoked with certfile==NULL though, since
for client credentials the cert is optional. This caused
it to call access(NULL), which happens to be harmless on
current Linux, but should none the less be avoided.

Signed-off-by: default avatarDaniel P. Berrange <berrange@redhat.com>
parent 7b35030e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment