Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/ipsec-tools-0_8-branch]: src/crypto/dist/ipsec-tools/src/racoon From Nak...
details: https://anonhg.NetBSD.org/src/rev/ecb82025a018
branches: ipsec-tools-0_8-branch
changeset: 763326:ecb82025a018
user: tteras <tteras%NetBSD.org@localhost>
date: Thu Aug 23 11:46:06 2012 +0000
description:
>From Nakano Takaharu: Fix bignum memory allocation.
diffstat:
crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r d5c09e16d1f8 -r ecb82025a018 crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c
--- a/crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c Sun Jan 01 17:32:04 2012 +0000
+++ b/crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c Thu Aug 23 11:46:06 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.20.4.1 2012/08/23 11:46:06 tteras 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