aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2006-06-13 13:45:09 +0000
committerDaniel P. Berrange <berrange@redhat.com>2006-06-13 13:45:09 +0000
commitd9bfbfa949d8b1a28c53b37116c52728863693b7 (patch)
treee969240fc4861c873efd62db80fe516873ad09d4 /src
parentDo a 'ping' test when opening connection to verify XenD really is there & alive (diff)
downloadlibvirt-d9bfbfa949d8b1a28c53b37116c52728863693b7.tar.gz
libvirt-d9bfbfa949d8b1a28c53b37116c52728863693b7.tar.bz2
libvirt-d9bfbfa949d8b1a28c53b37116c52728863693b7.zip
Call xenDeamonClose if ping test fails during open call, to ensure any resources are freed up
Diffstat (limited to 'src')
-rw-r--r--src/xend_internal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xend_internal.c b/src/xend_internal.c
index 37e5934f1..33f3ff41d 100644
--- a/src/xend_internal.c
+++ b/src/xend_internal.c
@@ -1673,6 +1673,7 @@ xenDaemonOpen(virConnectPtr conn, const char *name, int flags)
/* A sort of "ping" to make sure the daemon is actually
alive & well, rather than just assuming it is */
if ((ret = xenDaemonGetVersion(conn, &version)) < 0) {
+ xenDaemonClose(conn);
return ret;
}