[PATCH] virdomainjob: check if cb is not NULL before dereferencing

Ján Tomko jtomko at redhat.com
Fri Sep 30 12:13:04 UTC 2022


On a Friday in 2022, Kristina Hanicova wrote:
>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 at redhat.com>
>---
> src/conf/virdomainjob.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

I will push this after `aplay victory.wav` exits:
https://gitlab.com/janotomko/libvirt/-/pipelines/655155931

Jano


More information about the libvir-list mailing list