]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Test handling of non-existent x509 certs
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 21 Aug 2013 11:48:58 +0000 (12:48 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 21 Aug 2013 12:51:25 +0000 (13:51 +0100)
commit4b8d387ef9f8d03cde4e812a2db871959fc2db58
treeb4b80c01fa2a0f01f4a1901666cd67ed9895b103
parent4140dbedd9d2733b2beb1fda0878ad742f1122d2
Test handling of non-existent x509 certs

In commit f905cc998449c89339d0e2894a71d9a9e45293e5 a use of
uninitialized data was fixed based on a coverity report. It
turns out it was possible to trigger this issue by pointing
libvirt at non-existent certificate files, typically causing
a crash.

This adds a test case for that scenario. With the above
commit reverted, this new test case will crash with a SEGV.
With the fix applied, it passes, reporting a normal libvirt
error to the caller.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
tests/virnettlscontexttest.c