diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2006-06-13 13:45:09 +0000 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2006-06-13 13:45:09 +0000 |
commit | d9bfbfa949d8b1a28c53b37116c52728863693b7 (patch) | |
tree | e969240fc4861c873efd62db80fe516873ad09d4 /src | |
parent | Do a 'ping' test when opening connection to verify XenD really is there & alive (diff) | |
download | libvirt-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.c | 1 |
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; } |