Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 Add missing KEY_FREESP to ip6_forward
details: https://anonhg.NetBSD.org/src/rev/47651044a06f
branches: trunk
changeset: 353485:47651044a06f
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Tue May 09 04:24:10 2017 +0000
description:
Add missing KEY_FREESP to ip6_forward
diffstat:
sys/netinet6/ip6_forward.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 1b2b13d07331 -r 47651044a06f sys/netinet6/ip6_forward.c
--- a/sys/netinet6/ip6_forward.c Tue May 09 04:20:11 2017 +0000
+++ b/sys/netinet6/ip6_forward.c Tue May 09 04:24:10 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip6_forward.c,v 1.86 2017/02/14 03:05:06 ozaki-r Exp $ */
+/* $NetBSD: ip6_forward.c,v 1.87 2017/05/09 04:24:10 ozaki-r Exp $ */
/* $KAME: ip6_forward.c,v 1.109 2002/09/11 08:10:17 sakane Exp $ */
/*
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip6_forward.c,v 1.86 2017/02/14 03:05:06 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip6_forward.c,v 1.87 2017/05/09 04:24:10 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_gateway.h"
@@ -460,6 +460,10 @@
drop:
m_freem(m);
out:
+#ifdef IPSEC
+ if (sp != NULL)
+ KEY_FREESP(&sp);
+#endif
rtcache_unref(rt, ro);
if (ro != NULL)
percpu_putref(ip6_forward_rt_percpu);
Home |
Main Index |
Thread Index |
Old Index