• D
    Test handling of non-existent x509 certs · 4b8d387e
    Daniel P. Berrange 提交于
    In commit f905cc99 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: NDaniel P. Berrange <berrange@redhat.com>
    4b8d387e
virnettlscontexttest.c 25.2 KB