diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2000-10-31 13:18:54 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2000-10-31 13:18:54 +0000 |
commit | 0240837695c0242b03f6debd86a0fe268ab6666a (patch) | |
tree | 9ce7af7975b520e48c082f608280704969681b17 /usr.bin/ssh | |
parent | 37afeae197b70d6f5e5eb7fb107933ad0acae6bb (diff) |
so that large packets do not wrap "n"; from netbsd
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r-- | usr.bin/ssh/deattack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/deattack.c b/usr.bin/ssh/deattack.c index 74a46c0e7b8..df1d2240993 100644 --- a/usr.bin/ssh/deattack.c +++ b/usr.bin/ssh/deattack.c @@ -1,4 +1,4 @@ -/* $OpenBSD: deattack.c,v 1.9 2000/09/07 20:27:51 deraadt Exp $ */ +/* $OpenBSD: deattack.c,v 1.10 2000/10/31 13:18:53 markus Exp $ */ /* * Cryptographic attack detector for ssh - source code @@ -85,7 +85,7 @@ int detect_attack(unsigned char *buf, u_int32_t len, unsigned char *IV) { static u_int16_t *h = (u_int16_t *) NULL; - static u_int16_t n = HASH_MINSIZE / HASH_ENTRYSIZE; + static u_int32_t n = HASH_MINSIZE / HASH_ENTRYSIZE; register u_int32_t i, j; u_int32_t l; register unsigned char *c; |