aboutsummaryrefslogtreecommitdiffstats
path: root/main/ipsec-tools/05-bignum-alloc-fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/ipsec-tools/05-bignum-alloc-fix.patch')
-rw-r--r--main/ipsec-tools/05-bignum-alloc-fix.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/main/ipsec-tools/05-bignum-alloc-fix.patch b/main/ipsec-tools/05-bignum-alloc-fix.patch
new file mode 100644
index 0000000000..90c330ff43
--- /dev/null
+++ b/main/ipsec-tools/05-bignum-alloc-fix.patch
@@ -0,0 +1,25 @@
+Please note that diffs are not public domain; they are subject to the
+copyright notices on the relevant files.
+
+===================================================================
+RCS file: /ftp/cvs/cvsroot/src/crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c,v
+retrieving revision 1.20
+retrieving revision 1.21
+diff -u -p -r1.20 -r1.21
+--- ipsec-tools/src/racoon/crypto_openssl.c 2010/10/20 13:40:02 1.20
++++ ipsec-tools/src/racoon/crypto_openssl.c 2012/08/15 14:51:30 1.21
+@@ -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 @@ eay_bn2v(var, bn)
+ vchar_t **var;
+ BIGNUM *bn;
+ {
+- *var = vmalloc(bn->top * BN_BYTES);
++ *var = vmalloc(BN_num_bytes(bn));
+ if (*var == NULL)
+ return(-1);
+