summaryrefslogtreecommitdiffstats
path: root/deattack.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2000-11-05 06:42:36 +0100
committerBen Lindstrom <mouring@eviladmin.org>2000-11-05 06:42:36 +0100
commitf2de06ba2827fda9c737fd39330b53df648e4f04 (patch)
treef80cf7befa351d596386efce997b8f2cb8b1a9af /deattack.c
parent - (bal) next-posix.h - spelling and forgot a prototype (diff)
downloadopenssh-f2de06ba2827fda9c737fd39330b53df648e4f04.tar.xz
openssh-f2de06ba2827fda9c737fd39330b53df648e4f04.zip
- (bal) Sync with OpenBSD:
- markus@cvs.openbsd.org 2000/10/31 9:31:58 [compat.c] handle all old openssh versions - markus@cvs.openbsd.org 2000/10/31 13:1853 [deattack.c] so that large packets do not wrap "n"; from netbsd - (bal) rijndel.c - fix up RCSID to match OpenBSD tree
Diffstat (limited to 'deattack.c')
-rw-r--r--deattack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/deattack.c b/deattack.c
index 74a46c0e7..df1d22409 100644
--- a/deattack.c
+++ b/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;