summaryrefslogtreecommitdiff
path: root/packet.c
diff options
context:
space:
mode:
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/packet.c b/packet.c
index bd347ef0f..5078630e7 100644
--- a/packet.c
+++ b/packet.c
@@ -37,7 +37,7 @@
37 */ 37 */
38 38
39#include "includes.h" 39#include "includes.h"
40RCSID("$OpenBSD: packet.c,v 1.97 2002/07/04 08:12:15 deraadt Exp $"); 40RCSID("$OpenBSD: packet.c,v 1.98 2002/10/23 10:32:13 markus Exp $");
41 41
42#include "xmalloc.h" 42#include "xmalloc.h"
43#include "buffer.h" 43#include "buffer.h"
@@ -840,7 +840,7 @@ packet_read_poll1(void)
840 cp = buffer_ptr(&input); 840 cp = buffer_ptr(&input);
841 len = GET_32BIT(cp); 841 len = GET_32BIT(cp);
842 if (len < 1 + 2 + 2 || len > 256 * 1024) 842 if (len < 1 + 2 + 2 || len > 256 * 1024)
843 packet_disconnect("Bad packet length %d.", len); 843 packet_disconnect("Bad packet length %u.", len);
844 padded_len = (len + 8) & ~7; 844 padded_len = (len + 8) & ~7;
845 845
846 /* Check if the packet has been entirely received. */ 846 /* Check if the packet has been entirely received. */
@@ -936,9 +936,9 @@ packet_read_poll2(u_int32_t *seqnr_p)
936 packet_length = GET_32BIT(cp); 936 packet_length = GET_32BIT(cp);
937 if (packet_length < 1 + 4 || packet_length > 256 * 1024) { 937 if (packet_length < 1 + 4 || packet_length > 256 * 1024) {
938 buffer_dump(&incoming_packet); 938 buffer_dump(&incoming_packet);
939 packet_disconnect("Bad packet length %d.", packet_length); 939 packet_disconnect("Bad packet length %u.", packet_length);
940 } 940 }
941 DBG(debug("input: packet len %d", packet_length+4)); 941 DBG(debug("input: packet len %u", packet_length+4));
942 buffer_consume(&input, block_size); 942 buffer_consume(&input, block_size);
943 } 943 }
944 /* we have a partial packet of block_size bytes */ 944 /* we have a partial packet of block_size bytes */