summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2003-09-19 09:02:03 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2003-09-19 09:02:03 +0000
commitaa9718124d1d52c3067eeb8e0247b9a7bd623763 (patch)
tree3e6bf816e116f6ed9bb4396d068c3d68d0268b58 /usr.bin
parent1097819be54dd29c3d871a614d407d43cc9d2323 (diff)
buffer_dump only if PACKET_DEBUG is defined; Jedi/Sector One; pr 3471
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/packet.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/ssh/packet.c b/usr.bin/ssh/packet.c
index b7bea462108..91f3ab7a3f1 100644
--- a/usr.bin/ssh/packet.c
+++ b/usr.bin/ssh/packet.c
@@ -37,7 +37,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: packet.c,v 1.109 2003/07/10 14:42:28 markus Exp $");
+RCSID("$OpenBSD: packet.c,v 1.110 2003/09/19 09:02:02 markus Exp $");
#include <sys/queue.h>
@@ -1015,7 +1015,9 @@ packet_read_poll2(u_int32_t *seqnr_p)
cp = buffer_ptr(&incoming_packet);
packet_length = GET_32BIT(cp);
if (packet_length < 1 + 4 || packet_length > 256 * 1024) {
+#ifdef PACKET_DEBUG
buffer_dump(&incoming_packet);
+#endif
packet_disconnect("Bad packet length %u.", packet_length);
}
DBG(debug("input: packet len %u", packet_length+4));