]> xenbits.xensource.com Git - libvirt.git/commitdiff
Don't try to handle URIs with hostname in test driver
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 26 Jun 2007 22:57:41 +0000 (22:57 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 26 Jun 2007 22:57:41 +0000 (22:57 +0000)
ChangeLog
src/test.c

index cd65bb3dfe76d29fbdf412e59ef6867e132e607f..25de5ac2bd2734a8c6e8c6ea24c4efbad4204188 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 922826b4e7eb266db8cbff2917e806461df35101..31a24ded1747f8a789eb9a16b27eee61ac66dd81 100644 (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'