Fix sshbuf_new error path in skey.

This commit is contained in:
Darren Tucker 2018-07-11 10:10:26 +10:00
parent 7aab109b8b
commit 416287d45f
1 changed files with 2 additions and 2 deletions

View File

@ -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);