Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/dist/kame/racoon fix "round up to 8" code. from kame



details:   https://anonhg.NetBSD.org/src/rev/691e34e7587c
branches:  trunk
changeset: 546255:691e34e7587c
user:      itojun <itojun%NetBSD.org@localhost>
date:      Thu Apr 24 02:22:26 2003 +0000

description:
fix "round up to 8" code.  from kame

diffstat:

 crypto/dist/kame/racoon/crypto_openssl.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r ba92a0a48a96 -r 691e34e7587c crypto/dist/kame/racoon/crypto_openssl.c
--- a/crypto/dist/kame/racoon/crypto_openssl.c  Thu Apr 24 01:05:49 2003 +0000
+++ b/crypto/dist/kame/racoon/crypto_openssl.c  Thu Apr 24 02:22:26 2003 +0000
@@ -1171,7 +1171,7 @@
                return 448;
        if (len < 40 || len > 448)
                return -1;
-       return len + 7 / 8;
+       return (len + 7) / 8;
 }
 
 #ifdef HAVE_OPENSSL_RC5_H
@@ -1236,7 +1236,7 @@
                return 128;
        if (len < 40 || len > 2040)
                return -1;
-       return len + 7 / 8;
+       return (len + 7) / 8;
 }
 #endif
 
@@ -1378,7 +1378,7 @@
                return 128;
        if (len < 40 || len > 128)
                return -1;
-       return len + 7 / 8;
+       return (len + 7) / 8;
 }
 
 /*



Home | Main Index | Thread Index | Old Index