summaryrefslogtreecommitdiff
path: root/opacket.c
diff options
context:
space:
mode:
Diffstat (limited to 'opacket.c')
-rw-r--r--opacket.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/opacket.c b/opacket.c
index 56a76939..e5ccf809 100644
--- a/opacket.c
+++ b/opacket.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: opacket.c,v 1.7 2017/10/20 01:56:39 djm Exp $ */
+/* $OpenBSD: opacket.c,v 1.9 2019/01/19 21:33:14 djm Exp $ */
/* Written by Markus Friedl. Placed in the public domain. */
#include "includes.h"
@@ -238,7 +238,7 @@ packet_read_seqnr(u_int32_t *seqnr)
int r;
if ((r = ssh_packet_read_seqnr(active_state, &type, seqnr)) != 0)
- sshpkt_fatal(active_state, __func__, r);
+ sshpkt_fatal(active_state, r, "%s", __func__);
return type;
}
@@ -249,7 +249,7 @@ packet_read_poll_seqnr(u_int32_t *seqnr)
int r;
if ((r = ssh_packet_read_poll_seqnr(active_state, &type, seqnr)))
- sshpkt_fatal(active_state, __func__, r);
+ sshpkt_fatal(active_state, r, "%s", __func__);
return type;
}
@@ -266,7 +266,7 @@ packet_process_incoming(const char *buf, u_int len)
int r;
if ((r = ssh_packet_process_incoming(active_state, buf, len)) != 0)
- sshpkt_fatal(active_state, __func__, r);
+ sshpkt_fatal(active_state, r, "%s", __func__);
}
void
@@ -275,7 +275,7 @@ packet_write_wait(void)
int r;
if ((r = ssh_packet_write_wait(active_state)) != 0)
- sshpkt_fatal(active_state, __func__, r);
+ sshpkt_fatal(active_state, r, "%s", __func__);
}
void
@@ -284,7 +284,7 @@ packet_write_poll(void)
int r;
if ((r = ssh_packet_write_poll(active_state)) != 0)
- sshpkt_fatal(active_state, __func__, r);
+ sshpkt_fatal(active_state, r, "%s", __func__);
}
void
@@ -293,7 +293,7 @@ packet_read_expect(int expected_type)
int r;
if ((r = ssh_packet_read_expect(active_state, expected_type)) != 0)
- sshpkt_fatal(active_state, __func__, r);
+ sshpkt_fatal(active_state, r, "%s", __func__);
}
void