Don't try to handle URIs with hostname in test driver

This commit is contained in:
Daniel P. Berrange 2007-06-26 22:57:41 +00:00
parent 70da0494c1
commit dd8b3c6e76
2 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -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'