From 2781ec030bd3f9fd6a8d56c19d3cfe4b73f2376c Mon Sep 17 00:00:00 2001 From: Robert Manner Date: Mon, 10 Feb 2020 11:00:16 +0100 Subject: [PATCH] src/sudo.c: call audit plugin close when result is a wait status --- src/sudo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sudo.c b/src/sudo.c index e6c17668c..8cd28d844 100644 --- a/src/sudo.c +++ b/src/sudo.c @@ -968,6 +968,7 @@ run_command(struct command_details *details) #endif policy_close(status, 0); iolog_close(status, 0); + audit_close(SUDO_PLUGIN_WAIT_STATUS, cstat.val); break; default: /* TODO: handle front end error conditions. */