Fix tests: NULL pointer dereference in ltt_ust_context unit tests
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 10 Apr 2019 20:25:20 +0000 (16:25 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 24 Apr 2019 23:33:48 +0000 (19:33 -0400)
commitdd1cd4064dbceb0bb023aa2719427fe8c8b76003
tree373abbf2d0f3128c057983fdd80fd755195222f8
parent4829aad0888e9c0991cd3eab0ba999c2b4f5f50b
Fix tests: NULL pointer dereference in ltt_ust_context unit tests

The check for the expected context's type must be skipped when
trace_ust_create_context() fails. Otherwise, a NULL pointer
dereference will occur.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/unit/test_ust_data.c
This page took 0.025007 seconds and 4 git commands to generate.