]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: qemuDomainPMSuspendAgent: Don't assign to 'ret' in a conditional
authorErik Skultety <eskultet@redhat.com>
Fri, 11 Sep 2020 12:44:27 +0000 (14:44 +0200)
committerErik Skultety <eskultet@redhat.com>
Fri, 11 Sep 2020 12:48:40 +0000 (14:48 +0200)
commit9824a82198d97c40ff0e8f423888a7b9ccf5b301
tree09395ec5b2e9755155a15ea4867c5e62c98c26ba
parent551fb778f5451d40211867365b5eb9b8384b4e3b
qemu: qemuDomainPMSuspendAgent: Don't assign to 'ret' in a conditional

When the guest agent isn't running, we still report success on a PM
suspend action even though we logged an error correctly, this is because
we poisoned the 'ret' value a few lines above.

Fixes: a663a860819287e041c3de672aad1d8543098ecc
Signed-off-by: Erik Skultety <eskultet@redhat.com>
src/qemu/qemu_driver.c