mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 05:17:59 +03: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>
|
||||
|
||||
* 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;
|
||||
}
|
||||
|
||||
if (uri->server) {
|
||||
xmlFreeURI(uri);
|
||||
return VIR_DRV_OPEN_DECLINED;
|
||||
}
|
||||
|
||||
/* From this point on, the connection is for us. */
|
||||
if (!uri->path
|
||||
|| uri->path[0] == '\0'
|
||||
|
Loading…
Reference in New Issue
Block a user