From: Nikolay Shirokovskiy Date: Fri, 20 Mar 2020 07:16:23 +0000 (+0300) Subject: qemu: reset await_event in all error paths in qemuAgentCommand X-Git-Tag: v6.2.0-rc1~123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab286fba92c0f659b7263ce97c0fabd1a10212e8;p=thirdparty%2Flibvirt.git qemu: reset await_event in all error paths in qemuAgentCommand A fixup to patch [1]. We need to reset await_event in all error paths. [1] 52532073d : qemu: remove redundant needReply argument of qemuAgentCommand Signed-off-by: Nikolay Shirokovskiy Reviewed-by: Michal Privoznik --- diff --git a/src/qemu/qemu_agent.c b/src/qemu/qemu_agent.c index 9ea2c59563..6ff5b11374 100644 --- a/src/qemu/qemu_agent.c +++ b/src/qemu/qemu_agent.c @@ -1113,7 +1113,7 @@ qemuAgentCommand(qemuAgentPtr agent, } if (qemuAgentGuestSync(agent) < 0) - return -1; + goto cleanup; if (!(cmdstr = virJSONValueToString(cmd, false))) goto cleanup;