summaryrefslogtreecommitdiff
path: root/plugins/sudoers/audit.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/sudoers/audit.c')
-rw-r--r--plugins/sudoers/audit.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/sudoers/audit.c b/plugins/sudoers/audit.c
index f72d5b87d..0dfb99f72 100644
--- a/plugins/sudoers/audit.c
+++ b/plugins/sudoers/audit.c
@@ -158,6 +158,8 @@ sudoers_audit_open(unsigned int version, sudo_conv_t conversation,
sudo_conv = conversation;
sudo_printf = plugin_printf;
+ if (sudoers_audit.event_alloc != NULL)
+ plugin_event_alloc = sudoers_audit.event_alloc;
bindtextdomain("sudoers", LOCALEDIR);
@@ -284,7 +286,7 @@ log_server_accept(struct eventlog *evlog)
/* Open connection to log server, send hello and accept messages. */
client_closure = log_server_open(&audit_details, &now, false,
- SEND_ACCEPT, NULL, sudoers_audit.event_alloc);
+ SEND_ACCEPT, NULL);
if (client_closure != NULL)
ret = true;
}
@@ -391,7 +393,7 @@ sudoers_audit_reject(const char *plugin_name, unsigned int plugin_type,
if (!eventlog_reject(&evlog, 0, message, NULL, NULL))
ret = false;
- if (!log_server_reject(&evlog, message, sudoers_audit.event_alloc))
+ if (!log_server_reject(&evlog, message))
ret = false;
debug_return_int(ret);
@@ -424,8 +426,7 @@ sudoers_audit_error(const char *plugin_name, unsigned int plugin_type,
if (!eventlog_alert(&evlog, 0, &now, message, NULL))
ret = false;
- if (!log_server_alert(&evlog, &now, message, NULL,
- sudoers_audit.event_alloc))
+ if (!log_server_alert(&evlog, &now, message, NULL))
ret = false;
debug_return_int(ret);