diff options
author | Daniel Golle <daniel@makrotopia.org> | 2021-08-23 17:41:57 +0100 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2021-08-24 18:31:31 +0100 |
commit | 0603c8d5b0039d28ba1ac6ce64a6a5814aa0bf24 (patch) | |
tree | 9aaaf2a6d5815be2bd91872ace96789debb9dba9 | |
parent | 7f2398e789168d0b5853a52958a22403c513bf65 (diff) | |
download | procd-0603c8d5b0039d28ba1ac6ce64a6a5814aa0bf24.tar.gz |
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 <daniel@makrotopia.org>
-rw-r--r-- | jail/jail.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |