Module Name: src
Committed By: ozaki-r
Date: Fri Apr 24 07:51:43 UTC 2015
Modified Files:
src/sys/netinet6: in6_gif.c
Log Message:
Add missing rtcache_free
It's the same as other similar code paths in in_gif and ip6_etherip.
To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 src/sys/netinet6/in6_gif.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/netinet6/in6_gif.c
diff -u src/sys/netinet6/in6_gif.c:1.60 src/sys/netinet6/in6_gif.c:1.61
--- src/sys/netinet6/in6_gif.c:1.60 Sun May 18 14:46:16 2014
+++ src/sys/netinet6/in6_gif.c Fri Apr 24 07:51:43 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: in6_gif.c,v 1.60 2014/05/18 14:46:16 rmind Exp $ */
+/* $NetBSD: in6_gif.c,v 1.61 2015/04/24 07:51:43 ozaki-r Exp $ */
/* $KAME: in6_gif.c,v 1.62 2001/07/29 04:27:25 itojun Exp $ */
/*
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in6_gif.c,v 1.60 2014/05/18 14:46:16 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in6_gif.c,v 1.61 2015/04/24 07:51:43 ozaki-r Exp $");
#include "opt_inet.h"
@@ -184,6 +184,7 @@ in6_gif_output(struct ifnet *ifp, int fa
/* If the route constitutes infinite encapsulation, punt. */
if (rt->rt_ifp == ifp) {
+ rtcache_free(&sc->gif_ro);
m_freem(m);
return ENETUNREACH; /* XXX */
}