Fix: event-notifier: Groups may not have an error counter
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 9 Dec 2020 14:15:46 +0000 (09:15 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 9 Dec 2020 14:15:46 +0000 (09:15 -0500)
commitc30ad764fc2500598086902cf3bd2801b9c05c64
tree0259401e9df7a1e074a346a48a227f3c7a816143
parentdca92811152dcefdec21204f39335ea68b95d6a3
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: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I124519d37efe8eb20296cfd74027642c8e8162a5
liblttng-ust/event-notifier-notification.c
This page took 0.024502 seconds and 4 git commands to generate.