mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 20:45:18 +00:00
util: storagefile: Tolerate NULL path when looking up volume in chain
chain->path may be NULL e.g. for NBD drives, so the check needs to avoid dereferencing the path in such case
This commit is contained in:
parent
9cc8d6ee9e
commit
e3fb414e77
@ -1610,7 +1610,7 @@ virStorageFileChainLookup(virStorageSourcePtr chain,
|
||||
break;
|
||||
} else {
|
||||
if (STREQ_NULLABLE(name, chain->relPath) ||
|
||||
STREQ(name, chain->path))
|
||||
STREQ_NULLABLE(name, chain->path))
|
||||
break;
|
||||
|
||||
if (nameIsFile && virStorageSourceIsLocalStorage(chain)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user