• P
    util: storagefile: Don't pursue backing chain of NULL image · 6c312b0d
    Peter Krempa 提交于
    When virStorageFileGetMetadata is called with NULL path argument, the
    invalid pointer boils down through the recursive worker and is caught by
    virHashAddEntry which is thankfully resistant to NULL arguments. As it
    doesn't make sense to pursue backing chains of NULL volumes, exit
    earlier.
    
    This was noticed in the virt-aahelper-test with a slightly modified
    codebase.
    6c312b0d
virstoragefile.c 46.2 KB