提交 e3fb414e 编写于 作者: P Peter Krempa

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
上级 9cc8d6ee
......@@ -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)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册