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

2022-09-30 Thread Ján Tomko
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 --- src/conf/virdomainjob.c | 4 ++--

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

2022-09-30 Thread Kristina Hanicova
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 --- src/conf/virdomainjob.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-