]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virdomainjob: check if cb is not NULL before dereferencing
authorKristina Hanicova <khanicov@redhat.com>
Fri, 30 Sep 2022 11:51:28 +0000 (13:51 +0200)
committerJán Tomko <jtomko@redhat.com>
Fri, 30 Sep 2022 12:13:13 +0000 (14:13 +0200)
commit39e98f41134f3474a0bf784e44ebb322bb49ab3d
tree42687fbca5bdff3d4863b28de05de1fac742195b
parent3478cca80ea7382cfdbff836d5d0b92aa014297b
virdomainjob: check if cb is not NULL before dereferencing

The callback struct does not always have to be set which could
cause a dereferencing of a NULL pointer. This patch adds check
against NULL in missing places before dereferencing.

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
src/conf/virdomainjob.c