From 1dd32c23f2a85714dfafe2a9cc516971d187caa4 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Fri, 13 Jul 2018 13:38:10 +1000 Subject: Fallout from buffer conversion in AUDIT_EVENTS. Supply missing "int r" and fix error path for sshbuf_new(). --- monitor_wrap.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'monitor_wrap.c') diff --git a/monitor_wrap.c b/monitor_wrap.c index 55b892b90..96636aede 100644 --- a/monitor_wrap.c +++ b/monitor_wrap.c @@ -946,11 +946,12 @@ void mm_audit_event(ssh_audit_event_t event) { struct sshbuf *m; + int r; debug3("%s entering", __func__); if ((m = sshbuf_new()) == NULL) - fatal("%s: buffer error: %s", __func__, ssh_err(r)); + fatal("%s: sshbuf_new failed", __func__); if ((r = sshbuf_put_u32(m, event)) != 0) fatal("%s: buffer error: %s", __func__, ssh_err(r)); @@ -962,11 +963,12 @@ void mm_audit_run_command(const char *command) { struct sshbuf *m; + int r; debug3("%s entering command %s", __func__, command); if ((m = sshbuf_new()) == NULL) - fatal("%s: buffer error: %s", __func__, ssh_err(r)); + fatal("%s: sshbuf_new failed", __func__); if ((r = sshbuf_put_cstring(m, command)) != 0) fatal("%s: buffer error: %s", __func__, ssh_err(r)); -- cgit v1.2.3