]> xenbits.xensource.com Git - libvirt.git/commit
util: storage: Fix parsing of nbd:// URI without path
authorPeter Krempa <pkrempa@redhat.com>
Tue, 3 Feb 2015 17:03:41 +0000 (18:03 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 4 Feb 2015 07:38:25 +0000 (08:38 +0100)
commitfdb80ed4f6563928b9942a0d1450e0c725aa6c06
tree4e1ef5e66454da3e9a5db4c2cbc0492020dfee57
parentdf04741cd383b2475659a2f53d164c07f743f749
util: storage: Fix parsing of nbd:// URI without path

If a storage file would be backed with a NBD device without path
(nbd://localhost) libvirt would crash when parsing the backing path for
the disk as the URI structure's path element is NULL in such case but
the NBD parser would access it shamelessly.
src/util/virstoragefile.c
tests/virstoragetest.c