From 5e13eb3cd47abc717bb2e02dce5d26dc94281134 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 4 Sep 2015 01:16:52 -0400 Subject: [PATCH] Fix: filter validator use after free Signed-off-by: Mathieu Desnoyers --- lttng-filter-validator.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lttng-filter-validator.c b/lttng-filter-validator.c index a996945d..446fc41b 100644 --- a/lttng-filter-validator.c +++ b/lttng-filter-validator.c @@ -104,8 +104,9 @@ int merge_point_add_check(struct mp_table *mp_table, unsigned long target_pc, target_pc); return -EINVAL; } + } else { + hlist_add_head(&mp_node->node, head); } - hlist_add_head(&mp_node->node, head); return 0; } -- 2.34.1