From 0603c8d5b0039d28ba1ac6ce64a6a5814aa0bf24 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Mon, 23 Aug 2021 17:41:57 +0100 Subject: jail: return to hook callback instead of just calling it Avoid stack pollution and potentially worse things. Coverity CID: 1490056 Dereference after null check Signed-off-by: Daniel Golle --- jail/jail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jail/jail.c b/jail/jail.c index d61bbe0..24a3df3 100644 --- a/jail/jail.c +++ b/jail/jail.c @@ -457,7 +457,7 @@ static void run_hooklist(void) struct stat s; if (!hook) - hook_return_cb(); + return hook_return_cb(); DEBUG("executing hook %s\n", hook->file); -- cgit v1.2.1