[openssh-commits] [openssh] 03/03: Fix sshbuf_new error path in skey.

git+noreply at mindrot.org git+noreply at mindrot.org
Wed Jul 11 10:11:45 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 416287d45fcde0a8e66eee8b99aa73bd58607588
Author: Darren Tucker <dtucker at dtucker.net>
Date:   Wed Jul 11 10:10:26 2018 +1000

    Fix sshbuf_new error path in skey.
---
 monitor_wrap.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/monitor_wrap.c b/monitor_wrap.c
index cb1c999e..ad4e8dce 100644
--- a/monitor_wrap.c
+++ b/monitor_wrap.c
@@ -890,7 +890,7 @@ mm_skey_query(void *ctx, char **name, char **infotxt,
 	debug3("%s: entering", __func__);
 
 	if ((m = sshbuf_new()) == NULL)
-		fatal("%s: buffer error: %s", __func__, ssh_err(r));
+		fatal("%s: sshbuf_new failed", __func__);
 	mm_request_send(pmonitor->m_recvfd, MONITOR_REQ_SKEYQUERY, m);
 
 	mm_request_receive_expect(pmonitor->m_recvfd, MONITOR_ANS_SKEYQUERY, m);
@@ -928,7 +928,7 @@ mm_skey_respond(void *ctx, u_int numresponses, char **responses)
 		return (-1);
 
 	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, responses[0])) != 0)
 		fatal("%s: buffer error: %s", __func__, ssh_err(r));
 	mm_request_send(pmonitor->m_recvfd, MONITOR_REQ_SKEYRESPOND, m);

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


More information about the openssh-commits mailing list