From 73e8c5c3d0b3dd6305fbe87325f9d34907c8ce29 Mon Sep 17 00:00:00 2001 From: brd Date: Tue, 19 May 2015 17:00:57 +0000 Subject: Update ipsec-tools with a patch from NetBSD to fix a memory leak. PR: 200334 (reported in) Submitted by: brd Approved by: bdrewery (mentor, portmgr) MFH: 2015Q2 --- security/ipsec-tools/Makefile | 1 + security/ipsec-tools/files/patch-src_racoon_gssapi.c | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 security/ipsec-tools/files/patch-src_racoon_gssapi.c diff --git a/security/ipsec-tools/Makefile b/security/ipsec-tools/Makefile index a5787d9..21604ea 100644 --- a/security/ipsec-tools/Makefile +++ b/security/ipsec-tools/Makefile @@ -8,6 +8,7 @@ PORTNAME= ipsec-tools PORTVERSION= 0.8.2 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= SF diff --git a/security/ipsec-tools/files/patch-src_racoon_gssapi.c b/security/ipsec-tools/files/patch-src_racoon_gssapi.c new file mode 100644 index 0000000..1310b7e --- /dev/null +++ b/security/ipsec-tools/files/patch-src_racoon_gssapi.c @@ -0,0 +1,14 @@ +--- src/racoon/gssapi.c.orig 2015-05-19 16:38:06 UTC ++++ src/racoon/gssapi.c +@@ -192,6 +192,11 @@ gssapi_init(struct ph1handle *iph1) + gss_name_t princ, canon_princ; + OM_uint32 maj_stat, min_stat; + ++ if (iph1->rmconf == NULL) { ++ plog(LLV_ERROR, LOCATION, NULL, "no remote config\n"); ++ return -1; ++ } ++ + gps = racoon_calloc(1, sizeof (struct gssapi_ph1_state)); + if (gps == NULL) { + plog(LLV_ERROR, LOCATION, NULL, "racoon_calloc failed\n"); -- cgit v1.1