]> git.proxmox.com Git - mirror_qemu.git/commit - crypto/tlscredsx509.c
crypto: avoid passing NULL to access() syscall
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 18 Nov 2015 15:42:26 +0000 (15:42 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 18 Nov 2015 15:42:26 +0000 (15:42 +0000)
commit08cb175a24d642a40e41db2fef2892b0a1ab504e
treed57548eda93223e0b2d953ee4a9a055bfd91754e
parent7b35030eedc26eff82210caa2b0fff2f9d0df453
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: Daniel P. Berrange <berrange@redhat.com>
crypto/tlscredsx509.c