diff -r 920de456e514 src/test.c --- a/src/test.c Thu Jun 21 21:02:00 2007 -0400 +++ b/src/test.c Thu Jun 21 21:02:01 2007 -0400 @@ -735,6 +735,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'