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 rtfree



details:   https://anonhg.NetBSD.org/src/rev/07253de559f1
branches:  trunk
changeset: 819032:07253de559f1
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Mon Nov 14 02:34:19 2016 +0000

description:
Add missing rtfree

diffstat:

 sys/netinet6/nd6.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r e95e0b7be736 -r 07253de559f1 sys/netinet6/nd6.c
--- a/sys/netinet6/nd6.c        Mon Nov 14 00:18:33 2016 +0000
+++ b/sys/netinet6/nd6.c        Mon Nov 14 02:34:19 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nd6.c,v 1.210 2016/11/02 03:43:27 ozaki-r Exp $        */
+/*     $NetBSD: nd6.c,v 1.211 2016/11/14 02:34:19 ozaki-r Exp $        */
 /*     $KAME: nd6.c,v 1.279 2002/06/08 11:16:51 itojun Exp $   */
 
 /*
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nd6.c,v 1.210 2016/11/02 03:43:27 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nd6.c,v 1.211 2016/11/14 02:34:19 ozaki-r Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -998,8 +998,10 @@
                         */
                        if (!IN6_ARE_ADDR_EQUAL(&pr->ndpr_prefix.sin6_addr,
                            &satocsin6(rt_getkey(rt))->sin6_addr)) {
+                               rtfree(rt);
                                continue;
                        }
+                       rtfree(rt);
                }
 
                if (IN6_ARE_MASKED_ADDR_EQUAL(&pr->ndpr_prefix.sin6_addr,



Home | Main Index | Thread Index | Old Index