From 65e8d733da8dbdb73bcfed618838af323dcfbdfd Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Wed, 16 May 2018 11:36:33 +0300 Subject: [PATCH] seccomp: Fix typo in collect_filters *** CID 190178: Null pointer dereferences (NULL_RETURNS) /criu/seccomp.c: 296 in collect_filters() Signed-off-by: Cyrill Gorcunov Signed-off-by: Andrei Vagin --- criu/seccomp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/criu/seccomp.c b/criu/seccomp.c index 4a6515c42..f6362635e 100644 --- a/criu/seccomp.c +++ b/criu/seccomp.c @@ -287,7 +287,7 @@ static int collect_filters(struct pstree_item *item) for (i = 0; i < item->nr_threads; i++) { entry = seccomp_find_entry(item->threads[i]->real); - if (!leader) { + if (!entry) { pr_err("Can't collect filter on tid_real %d\n", item->pid->real); return -1;