]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Validate arg in qemuAgentErrorComandUnsupported()
authorJonathon Jongsma <jjongsma@redhat.com>
Fri, 30 Aug 2019 16:09:09 +0000 (11:09 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 30 Aug 2019 21:23:03 +0000 (17:23 -0400)
commitbe9d259ebc6d67430cd6e9bd43a91ac55a7903e0
tree3e929bbf42b7bc084dae2b209d6721da4f34c415
parent9a99b01f8d3b2be491f9f8412c6f894d30d7e2fe
qemu: Validate arg in qemuAgentErrorComandUnsupported()

Coverity noted that 'reply' can be NULL after calling
qemuAgentCommand().  Avoid dereferencing reply in
qemuAgentErrorComandUnsupported() in that case.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
src/qemu/qemu_agent.c