Fix: event-notifier: Groups may not have an error counter
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Fri, 27 Nov 2020 19:40:08 +0000 (14:40 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 27 Nov 2020 20:44:53 +0000 (15:44 -0500)
commita83d68311879e618ea79a0f2a9f3e53e05855c7e
treeaa78e379a25d07093e302a1e19f77a91f5a4c6fa
parent2af7b13b53e4b92d3e76b74e5f1a7e0c26e58e9c
Fix: event-notifier: Groups may not have an error counter

Issue
=====
If no error counter is attached to an event notifier group, calling
the `record_error()` function leads to a NULL pointer dereference.

Solution
========
Check if the error_counter field is allocated before dereferencing it.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I7ba68f9ae5b7b66cea538cf030bc5e1287d6eace
src/lttng-event-notifier-notification.c
This page took 0.02557 seconds and 4 git commands to generate.