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)
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


No differences found
This page took 0.026172 seconds and 5 git commands to generate.