]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Fix crash in virQEMUCapsProbeQMPTPM
authorPeter Krempa <pkrempa@redhat.com>
Mon, 12 Jul 2021 12:55:42 +0000 (14:55 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 19 Jul 2021 09:33:46 +0000 (11:33 +0200)
commite7ad645a8efb4dd65574400e2edb8a46fbb7f895
tree63e4f3446cb0e19169a825c74204c6bd60cb3553
parent26136e3b86f5eaf1018252cee8c6ab7df24b0832
qemu: Fix crash in virQEMUCapsProbeQMPTPM

If the queried QMP command doesn't exist qemuMonitorGetTPMModels returns
0 but sets the string list to NULL which isn't accepted by
g_strv_contains.

Fixes: a5bc5f0ecf8
Reported-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/qemu/qemu_capabilities.c