From: gerhard Date: Tue, 6 May 2014 09:49:58 +0000 (+0000) Subject: Fix a memleak when lookup of SA fails during forwarding of encrypted IPv6 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8e48d76aa826d4d11d6dabc42e3c8acc3c69b99b;p=openbsd Fix a memleak when lookup of SA fails during forwarding of encrypted IPv6 pakets. ok mpi@ markus@ mikeb@ --- 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 {