1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-20 06:50:22 +03:00

Fix check for return value of qemuDomainAgentAvailable()

Commit dcbb243bbc3470431d15cec4c5bb96d2de89a88b used the return value of
the function as int even though it returns bool.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
Martin Kletzander 2015-04-27 10:11:35 +02:00
parent d38d3c25f4
commit 6957a606a5

View File

@ -19829,7 +19829,7 @@ qemuDomainInterfaceAddresses(virDomainPtr dom,
if (qemuDomainObjBeginJob(driver, vm, QEMU_JOB_QUERY) < 0)
goto cleanup;
if (qemuDomainAgentAvailable(vm, true) < 0)
if (!qemuDomainAgentAvailable(vm, true))
goto endjob;
qemuDomainObjEnterAgent(vm);