From 8e48d76aa826d4d11d6dabc42e3c8acc3c69b99b Mon Sep 17 00:00:00 2001 From: gerhard Date: Tue, 6 May 2014 09:49:58 +0000 Subject: [PATCH] Fix a memleak when lookup of SA fails during forwarding of encrypted IPv6 pakets. ok mpi@ markus@ mikeb@ --- sys/netinet6/ip6_forward.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/netinet6/ip6_forward.c b/sys/netinet6/ip6_forward.c index ceccbe7d72a..3d5b9fd26fb 100644 --- a/sys/netinet6/ip6_forward.c +++ b/sys/netinet6/ip6_forward.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip6_forward.c,v 1.65 2014/04/14 09:06:42 mpi Exp $ */ +/* $OpenBSD: ip6_forward.c,v 1.66 2014/05/06 09:49:58 gerhard Exp $ */ /* $KAME: ip6_forward.c,v 1.75 2001/06/29 12:42:13 jinmei Exp $ */ /* @@ -201,6 +201,7 @@ reroute: if (error == -EINVAL) /* Should silently drop packet */ error = 0; + m_freem(m); goto freecopy; } } else { -- 2.20.1