diff options
author | sumikawa <sumikawa@FreeBSD.org> | 2004-11-23 02:42:03 +0800 |
---|---|---|
committer | sumikawa <sumikawa@FreeBSD.org> | 2004-11-23 02:42:03 +0800 |
commit | b8e9f474e8736eb8266023fa083682d0aa984682 (patch) | |
tree | abe3bcf9514959b96e84acf4831dafd62ead92ab /security/racoon2 | |
parent | e52a32ea4e5452fc817d7f330b3a0f7d57dfc8ee (diff) | |
download | freebsd-ports-graphics-b8e9f474e8736eb8266023fa083682d0aa984682.tar.gz freebsd-ports-graphics-b8e9f474e8736eb8266023fa083682d0aa984682.tar.zst freebsd-ports-graphics-b8e9f474e8736eb8266023fa083682d0aa984682.zip |
Fixed memory leak.
Diffstat (limited to 'security/racoon2')
-rw-r--r-- | security/racoon2/Makefile | 1 | ||||
-rw-r--r-- | security/racoon2/files/patch-crypto_openssl.c | 42 |
2 files changed, 43 insertions, 0 deletions
diff --git a/security/racoon2/Makefile b/security/racoon2/Makefile index 49bf69bee62..573cff96820 100644 --- a/security/racoon2/Makefile +++ b/security/racoon2/Makefile @@ -7,6 +7,7 @@ PORTNAME= racoon PORTVERSION= 20040818a +PORTREVISION= 1 CATEGORIES= security net MASTER_SITES= ftp://ftp.kame.net/pub/kame/misc/ diff --git a/security/racoon2/files/patch-crypto_openssl.c b/security/racoon2/files/patch-crypto_openssl.c new file mode 100644 index 00000000000..3f243d19c8e --- /dev/null +++ b/security/racoon2/files/patch-crypto_openssl.c @@ -0,0 +1,42 @@ +--- crypto_openssl.old.c 2004-04-09 22:25:56.000000000 +0530 ++++ crypto_openssl.c 2004-08-02 20:30:03.000000000 +0530 +@@ -1654,6 +1654,7 @@ + + HMAC_Final((HMAC_CTX *)c, res->v, &l); + res->l = l; ++ HMAC_cleanup((HMAC_CTX *)c); + (void)racoon_free(c); + + if (SHA512_DIGEST_LENGTH != res->l) { +@@ -1710,6 +1711,7 @@ + + HMAC_Final((HMAC_CTX *)c, res->v, &l); + res->l = l; ++ HMAC_cleanup((HMAC_CTX *)c); + (void)racoon_free(c); + + if (SHA384_DIGEST_LENGTH != res->l) { +@@ -1766,6 +1768,7 @@ + + HMAC_Final((HMAC_CTX *)c, res->v, &l); + res->l = l; ++ HMAC_cleanup((HMAC_CTX *)c); + (void)racoon_free(c); + + if (SHA256_DIGEST_LENGTH != res->l) { +@@ -1823,6 +1826,7 @@ + + HMAC_Final((HMAC_CTX *)c, res->v, &l); + res->l = l; ++ HMAC_cleanup((HMAC_CTX *)c); + (void)racoon_free(c); + + if (SHA_DIGEST_LENGTH != res->l) { +@@ -1879,6 +1883,7 @@ + + HMAC_Final((HMAC_CTX *)c, res->v, &l); + res->l = l; ++ HMAC_cleanup((HMAC_CTX *)c); + (void)racoon_free(c); + + if (MD5_DIGEST_LENGTH != res->l) { |