From: Guido Günther Date: Thu, 29 Nov 2012 12:08:40 +0000 (+0100) Subject: Don't fail hard when we can't connect to the monitor X-Git-Tag: CVE-2012-3411~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d521119c09f69570652d0d7a4a8a581b8dee57d4;p=thirdparty%2Flibvirt.git Don't fail hard when we can't connect to the monitor As of 1a50ba2cb07d8bb2aa724062889deb9efd7ad9e9 we fail to connect to the monitor instead of getting an exit status != 0 from qemu itself. This breaks capabilities probing for the non QMP case. --- diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index d92947f7da..d6affb9721 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -2345,8 +2345,10 @@ qemuCapsInitQMP(qemuCapsPtr caps, goto cleanup; } - if (!(mon = qemuMonitorOpen(NULL, &config, true, &callbacks))) + if (!(mon = qemuMonitorOpen(NULL, &config, true, &callbacks))) { + ret = 0; goto cleanup; + } qemuMonitorLock(mon);