mirror of git://anongit.mindrot.org/openssh.git
- markus@cvs.openbsd.org 2003/09/19 09:02:02
[packet.c] buffer_dump only if PACKET_DEBUG is defined; Jedi/Sector One; pr 3471
This commit is contained in:
parent
c0815c927e
commit
a8151da5fe
|
@ -46,6 +46,9 @@
|
|||
- miod@cvs.openbsd.org 2003/09/18 13:02:21
|
||||
[authfd.c bufaux.c dh.c mac.c ssh-keygen.c]
|
||||
A few signedness fixes for harmless situations; markus@ ok
|
||||
- markus@cvs.openbsd.org 2003/09/19 09:02:02
|
||||
[packet.c]
|
||||
buffer_dump only if PACKET_DEBUG is defined; Jedi/Sector One; pr 3471
|
||||
|
||||
20030919
|
||||
- (djm) Bug #683: Remove reference to --with-ipv4-default from INSTALL;
|
||||
|
@ -1182,4 +1185,4 @@
|
|||
- Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
|
||||
Report from murple@murple.net, diagnosis from dtucker@zip.com.au
|
||||
|
||||
$Id: ChangeLog,v 1.3028 2003/09/22 11:05:50 dtucker Exp $
|
||||
$Id: ChangeLog,v 1.3029 2003/09/22 11:06:46 dtucker Exp $
|
||||
|
|
4
packet.c
4
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 "openbsd-compat/sys-queue.h"
|
||||
|
||||
|
@ -1020,7 +1020,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));
|
||||
|
|
Loading…
Reference in New Issue