From: Jérémie Galarneau Date: Wed, 10 Apr 2019 20:37:42 +0000 (-0400) Subject: Fix tests: NULL pointer dereference in ust channel unit tests X-Git-Tag: v2.12.0-rc1~615 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=30b66335dc3656fc79129b9e7dfe1cf13ae578e1;hp=30b66335dc3656fc79129b9e7dfe1cf13ae578e1 Fix tests: NULL pointer dereference in ust channel unit tests The test_create_ust_channel() test case erroneously checks for a NULL session instead of a channel. This can result in a NULL pointer dereference on failure to create a ust channel. The scope of usess is reduced to prevent similar mistakes in the future. Moving 'dom' has made it obvious that this variable is unused. Hence, it is removed. Signed-off-by: Jérémie Galarneau ---