提交 dd8b3c6e 编写于 作者: D Daniel P. Berrange

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

上级 70da0494
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, ...@@ -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'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册