mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-31 01:35:11 +02:00
- markus@cvs.openbsd.org 2001/02/27 10:35:27
[packet.c] fix random padding
This commit is contained in:
parent
4b00c8b40b
commit
6a5cde0eb7
@ -52,6 +52,9 @@
|
|||||||
- deraadt@cvs.openbsd.org 2001/02/24 10:37:26
|
- deraadt@cvs.openbsd.org 2001/02/24 10:37:26
|
||||||
[sshd_config]
|
[sshd_config]
|
||||||
ssh2 rsa key before dsa key
|
ssh2 rsa key before dsa key
|
||||||
|
- markus@cvs.openbsd.org 2001/02/27 10:35:27
|
||||||
|
[packet.c]
|
||||||
|
fix random padding
|
||||||
|
|
||||||
20010304
|
20010304
|
||||||
- (bal) Remove make-ssh-known-hosts.1 since it's no longer valid.
|
- (bal) Remove make-ssh-known-hosts.1 since it's no longer valid.
|
||||||
@ -4244,4 +4247,4 @@
|
|||||||
- Wrote replacements for strlcpy and mkdtemp
|
- Wrote replacements for strlcpy and mkdtemp
|
||||||
- Released 1.0pre1
|
- 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 $
|
||||||
|
4
packet.c
4
packet.c
@ -37,7 +37,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#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 "xmalloc.h"
|
||||||
#include "buffer.h"
|
#include "buffer.h"
|
||||||
@ -586,7 +586,7 @@ packet_send2(void)
|
|||||||
if (i % 4 == 0)
|
if (i % 4 == 0)
|
||||||
rand = arc4random();
|
rand = arc4random();
|
||||||
cp[i] = rand & 0xff;
|
cp[i] = rand & 0xff;
|
||||||
rand <<= 8;
|
rand >>= 8;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* clear padding */
|
/* clear padding */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user