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

committed by
Todd C. Miller

parent
0202dc67cc
commit
2781ec030b
@@ -968,6 +968,7 @@ run_command(struct command_details *details)
|
|||||||
#endif
|
#endif
|
||||||
policy_close(status, 0);
|
policy_close(status, 0);
|
||||||
iolog_close(status, 0);
|
iolog_close(status, 0);
|
||||||
|
audit_close(SUDO_PLUGIN_WAIT_STATUS, cstat.val);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* TODO: handle front end error conditions. */
|
/* TODO: handle front end error conditions. */
|
||||||
|
Reference in New Issue
Block a user