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 rtcache_free



details:   https://anonhg.NetBSD.org/src/rev/e3fec31db5f2
branches:  trunk
changeset: 337712:e3fec31db5f2
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Fri Apr 24 07:51:43 2015 +0000

description:
Add missing rtcache_free

It's the same as other similar code paths in in_gif and ip6_etherip.

diffstat:

 sys/netinet6/in6_gif.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r b7536b64d774 -r e3fec31db5f2 sys/netinet6/in6_gif.c
--- a/sys/netinet6/in6_gif.c    Fri Apr 24 07:00:51 2015 +0000
+++ b/sys/netinet6/in6_gif.c    Fri Apr 24 07:51:43 2015 +0000
@@ -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 @@
 
        /* If the route constitutes infinite encapsulation, punt. */
        if (rt->rt_ifp == ifp) {
+               rtcache_free(&sc->gif_ro);
                m_freem(m);
                return ENETUNREACH;     /* XXX */
        }



Home | Main Index | Thread Index | Old Index