[Bug 367] patches for Cray port

Damien Miller djm at mindrot.org
Tue May 13 10:49:10 EST 2003


Wendy Palm wrote:
> actually, that's not true.  i've found i mis-tested and the deattack.c patch
> is still needed for protocol 2-

That patch looks over-complicated. Does this one work?

Index: deattack.c
===================================================================
RCS file: /var/cvs/openssh/deattack.c,v
retrieving revision 1.15
diff -u -r1.15 deattack.c
--- deattack.c  5 Mar 2002 01:53:05 -0000       1.15
+++ deattack.c  13 May 2003 00:49:03 -0000
@@ -33,7 +33,7 @@

 /* Hashing constants */
 #define HASH_MINSIZE   (8 * 1024)
-#define HASH_ENTRYSIZE (2)
+#define HASH_ENTRYSIZE (sizeof(u_int16_t))
 #define HASH_FACTOR(x) ((x)*3/2)
 #define HASH_UNUSEDCHAR        (0xff)
 #define HASH_UNUSED    (0xffff)





More information about the openssh-unix-dev mailing list