diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2001-02-27 10:35:28 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2001-02-27 10:35:28 +0000 |
commit | adc0b9a1e33aff28371fd4e95fb7ef9d896e08e0 (patch) | |
tree | 30ce4293c59b45280f0110d0e412d524f337fc95 /usr.bin/ssh | |
parent | d9592f4e34a73526f928927977023e71198239b8 (diff) |
fix random padding
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r-- | usr.bin/ssh/packet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/packet.c b/usr.bin/ssh/packet.c index 0ede9452222..f74b79e4774 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.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 */ |