From: Jérémie Galarneau Date: Tue, 18 Feb 2020 01:05:22 +0000 (-0500) Subject: Fix: relayd: use of relay_session ref count before initialization X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=19efdf659e29ec34a27c304ccbf7ad6ff8e26337;hp=19efdf659e29ec34a27c304ccbf7ad6ff8e26337 Fix: relayd: use of relay_session ref count before initialization The relay_session's reference count is used before it is initialized on multiple code paths of session_create(). The initialization of the reference count, mutexes, and intrusive data structure nodes are initialized earlier to make their use safe in the event of an error. Signed-off-by: Jérémie Galarneau Change-Id: I1be53ad88a3e783b85b4c568527df1a75ce58d3a ---