]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libvirt: Fix crash on URI without scheme
authorCole Robinson <crobinso@redhat.com>
Wed, 20 Apr 2016 17:25:07 +0000 (13:25 -0400)
committerCole Robinson <crobinso@redhat.com>
Thu, 21 Apr 2016 13:46:16 +0000 (09:46 -0400)
commit2442bc1c341f7c6ad4d3b3b7f6111b6d827cfb38
tree37b26035829d0ee3922148aa0d7bd285da96649a
parentaf20fbab35da2251fb3678f1d1a579c7ddfa3d7c
libvirt: Fix crash on URI without scheme

My commit 0d1579572 crashes on a URI without a scheme, like via
'virsh --connect frob'

Add a check on uri->server too while we are at it, and centralize
them all

(cherry picked from commit f1bae376b71ecc712e5d8359382290db1120e13e)
src/libvirt.c