2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-28 21:07:55 +00:00

src/sudo.c: call audit plugin close when result is a wait status

This commit is contained in:
Robert Manner 2020-02-10 11:00:16 +01:00 committed by Todd C. Miller
parent 0202dc67cc
commit 2781ec030b

View File

@ -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. */