From: Daniel P. Berrange Date: Tue, 26 Jun 2007 22:57:41 +0000 (+0000) Subject: Don't try to handle URIs with hostname in test driver X-Git-Tag: LIBVIRT_0_3_0~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd8b3c6e76053c8a94c9237f2bb93f6406cb6010;p=thirdparty%2Flibvirt.git Don't try to handle URIs with hostname in test driver --- diff --git a/ChangeLog b/ChangeLog index cd65bb3dfe..25de5ac2bd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Jun 26 18:56:00 EST 2007 Daniel P. Berrange + + * src/test.c: Don't try to handle URIs with a hostname + Tue Jun 26 18:53:00 EST 2007 Daniel P. Berrange * src/internal.h, src/libvirt.c, src/driver.h, src/libvirt_sym.version diff --git a/src/test.c b/src/test.c index 922826b4e7..31a24ded17 100644 --- a/src/test.c +++ b/src/test.c @@ -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'