summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorGerhard Roth <gerhard@cvs.openbsd.org>2014-05-06 09:49:59 +0000
committerGerhard Roth <gerhard@cvs.openbsd.org>2014-05-06 09:49:59 +0000
commitaa8b8c1d67297ca784a7d2233a1536551b2ab9ae (patch)
tree7279a936744802869e99d34944f0f484a026693a /sys
parentac9347af3844155d8610447d76d549e060b9a6ee (diff)
Fix a memleak when lookup of SA fails during forwarding of encrypted IPv6
pakets. ok mpi@ markus@ mikeb@
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet6/ip6_forward.c3
1 files changed, 2 insertions, 1 deletions
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 {