* src/libvir.c: Karel pointed out handle was lost in

virConnectOpenReadOnly()
Daniel
This commit is contained in:
Daniel Veillard 2006-01-24 13:10:39 +00:00
parent 46202b3705
commit 41e990528a
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Tue Jan 24 14:09:37 CET 2006 Daniel Veillard <veillard@redhat.com>
* src/libvir.c: Karel pointed out handle was lost in
virConnectOpenReadOnly()
Mon Jan 23 23:53:07 CET 2006 Daniel Veillard <veillard@redhat.com>
* docs/site.xsl docs/*.png docs/*.html: update the images from Diana,

View File

@ -147,6 +147,9 @@ virConnectOpenReadOnly(const char *name) {
handle = xenHypervisorOpen();
if (handle >= 0)
method++;
else
handle = -1;
xshandle = xs_daemon_open_readonly();
if (xshandle != NULL)
method++;
@ -155,7 +158,7 @@ virConnectOpenReadOnly(const char *name) {
if (ret == NULL)
goto failed;
ret->magic = VIR_CONNECT_MAGIC;
ret->handle = -1;
ret->handle = handle;
ret->xshandle = xshandle;
if (xend_setup(ret) == 0)
method++;