diff options
author | Timo Teräs <timo.teras@iki.fi> | 2012-08-23 14:58:18 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2012-08-23 14:59:26 +0300 |
commit | 75708decfc9606471b2f84956c5aedbdc587b5c1 (patch) | |
tree | 5758bae5c4e480bbec562b856d5c11ae1e51e7cb /main/ipsec-tools/05-bignum-alloc-fix.patch | |
parent | c2a9ab90408365e4d68c3bfe3350a09fd908881a (diff) | |
download | aports-75708decfc9606471b2f84956c5aedbdc587b5c1.tar.bz2 aports-75708decfc9606471b2f84956c5aedbdc587b5c1.tar.xz |
main/ipsec-tools: cherry-pick fixes from upstream CVS
Diffstat (limited to 'main/ipsec-tools/05-bignum-alloc-fix.patch')
-rw-r--r-- | main/ipsec-tools/05-bignum-alloc-fix.patch | 25 |
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); + |