]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_nbdkit: fix possible null dereference
authorPavel Hrdina <phrdina@redhat.com>
Wed, 20 Sep 2023 11:45:59 +0000 (13:45 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Wed, 20 Sep 2023 12:25:17 +0000 (14:25 +0200)
commited80ce426e4c4fa8e91cb09214b5cf21023811af
tree68ad9d1140485266284d25646d09d1fd2d3b9f96
parentb74fd210b37bfb31dc1e4b99fa64849d0f91541e
qemu_nbdkit: fix possible null dereference

Function virGetConnectSecret() can return NULL so we need to check it
since in virSecretGetSecretString() it gets dereferenced.

Reported-by: coverity
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_nbdkit.c