mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
Don't try to handle URIs with hostname in test driver
This commit is contained in:
parent
70da0494c1
commit
dd8b3c6e76
@ -1,3 +1,7 @@
|
|||||||
|
Tue Jun 26 18:56:00 EST 2007 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
|
* src/test.c: Don't try to handle URIs with a hostname
|
||||||
|
|
||||||
Tue Jun 26 18:53:00 EST 2007 Daniel P. Berrange <berrange@redhat.com>
|
Tue Jun 26 18:53:00 EST 2007 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
* src/internal.h, src/libvirt.c, src/driver.h, src/libvirt_sym.version
|
* src/internal.h, src/libvirt.c, src/driver.h, src/libvirt_sym.version
|
||||||
|
@ -743,6 +743,11 @@ int testOpen(virConnectPtr conn,
|
|||||||
return VIR_DRV_OPEN_DECLINED;
|
return VIR_DRV_OPEN_DECLINED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (uri->server) {
|
||||||
|
xmlFreeURI(uri);
|
||||||
|
return VIR_DRV_OPEN_DECLINED;
|
||||||
|
}
|
||||||
|
|
||||||
/* From this point on, the connection is for us. */
|
/* From this point on, the connection is for us. */
|
||||||
if (!uri->path
|
if (!uri->path
|
||||||
|| uri->path[0] == '\0'
|
|| uri->path[0] == '\0'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user