Source-Changes-HG archive

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

[src/trunk]: src/crypto/dist/ipsec-tools/src/racoon Fix make test on powermac...



details:   https://anonhg.NetBSD.org/src/rev/635afd5af0a7
branches:  trunk
changeset: 781018:635afd5af0a7
user:      manu <manu%NetBSD.org@localhost>
date:      Wed Aug 15 14:51:30 2012 +0000

description:
Fix make test on powermac G5. Patch from Nakano Takaharu

diffstat:

 crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 469e7941269b -r 635afd5af0a7 crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c
--- a/crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c       Wed Aug 15 13:28:32 2012 +0000
+++ b/crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c       Wed Aug 15 14:51:30 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: crypto_openssl.c,v 1.20 2010/10/20 13:40:02 tteras Exp $       */
+/*     $NetBSD: crypto_openssl.c,v 1.21 2012/08/15 14:51:30 manu Exp $ */
 
 /* Id: crypto_openssl.c,v 1.47 2006/05/06 20:42:09 manubsd Exp */
 
@@ -2501,7 +2501,7 @@
        vchar_t **var;
        BIGNUM *bn;
 {
-       *var = vmalloc(bn->top * BN_BYTES);
+       *var = vmalloc(BN_num_bytes(bn));
        if (*var == NULL)
                return(-1);
 



Home | Main Index | Thread Index | Old Index