[openssh-commits] [openssh] 01/02: Fallout from buffer conversion in AUDIT_EVENTS.

git+noreply at mindrot.org git+noreply at mindrot.org
Fri Jul 13 13:41:06 AEST 2018


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit 1dd32c23f2a85714dfafe2a9cc516971d187caa4
Author: Darren Tucker <dtucker at dtucker.net>
Date:   Fri Jul 13 13:38:10 2018 +1000

    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(-)

diff --git a/monitor_wrap.c b/monitor_wrap.c
index 55b892b9..96636aed 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));
 

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list