From 43bcdca61ea5736b6effb0993705a7d0d5652424 Mon Sep 17 00:00:00 2001 From: mason Date: Mon, 30 Oct 2000 18:58:37 +0000 Subject: [PATCH] Apply the following: - static u_int16_t n = HASH_MINSIZE / HASH_ENTRYSIZE; + static u_int32_t n = HASH_MINSIZE / HASH_ENTRYSIZE; ...so that large packets do not wrap "n". --- crypto/dist/ssh/deattack.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto/dist/ssh/deattack.c b/crypto/dist/ssh/deattack.c index eb38f1ab02f2..aad05f050e4e 100644 --- a/crypto/dist/ssh/deattack.c +++ b/crypto/dist/ssh/deattack.c @@ -1,4 +1,4 @@ -/* $NetBSD: deattack.c,v 1.1.1.1 2000/09/28 22:10:01 thorpej Exp $ */ +/* $NetBSD: deattack.c,v 1.2 2000/10/30 18:58:37 mason Exp $ */ /* * Cryptographic attack detector for ssh - source code @@ -23,7 +23,7 @@ #include #ifndef lint -__RCSID("$NetBSD: deattack.c,v 1.1.1.1 2000/09/28 22:10:01 thorpej Exp $"); +__RCSID("$NetBSD: deattack.c,v 1.2 2000/10/30 18:58:37 mason Exp $"); #endif #include "includes.h" @@ -92,7 +92,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;