diff --git a/ChangeLog b/ChangeLog index d7b55b088..b05e47689 100644 --- a/ChangeLog +++ b/ChangeLog @@ -52,6 +52,9 @@ - deraadt@cvs.openbsd.org 2001/02/24 10:37:26 [sshd_config] ssh2 rsa key before dsa key + - markus@cvs.openbsd.org 2001/02/27 10:35:27 + [packet.c] + fix random padding 20010304 - (bal) Remove make-ssh-known-hosts.1 since it's no longer valid. @@ -4244,4 +4247,4 @@ - Wrote replacements for strlcpy and mkdtemp - Released 1.0pre1 -$Id: ChangeLog,v 1.866 2001/03/05 06:05:35 mouring Exp $ +$Id: ChangeLog,v 1.867 2001/03/05 06:07:00 mouring Exp $ diff --git a/packet.c b/packet.c index 5213e43e8..02f8ab1bb 100644 --- a/packet.c +++ b/packet.c @@ -37,7 +37,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: packet.c,v 1.51 2001/02/12 22:56:09 deraadt Exp $"); +RCSID("$OpenBSD: packet.c,v 1.52 2001/02/27 10:35:27 markus Exp $"); #include "xmalloc.h" #include "buffer.h" @@ -586,7 +586,7 @@ packet_send2(void) if (i % 4 == 0) rand = arc4random(); cp[i] = rand & 0xff; - rand <<= 8; + rand >>= 8; } } else { /* clear padding */