Module Name:    src
Committed By:   ozaki-r
Date:           Tue Aug 11 09:30:32 UTC 2015

Modified Files:
        src/sys/netinet6: nd6.c

Log Message:
Fix double rtfree


To generate a diff of this commit:
cvs rdiff -u -r1.167 -r1.168 src/sys/netinet6/nd6.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/nd6.c
diff -u src/sys/netinet6/nd6.c:1.167 src/sys/netinet6/nd6.c:1.168
--- src/sys/netinet6/nd6.c:1.167	Tue Aug 11 08:27:08 2015
+++ src/sys/netinet6/nd6.c	Tue Aug 11 09:30:32 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: nd6.c,v 1.167 2015/08/11 08:27:08 ozaki-r Exp $	*/
+/*	$NetBSD: nd6.c,v 1.168 2015/08/11 09:30:32 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.167 2015/08/11 08:27:08 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nd6.c,v 1.168 2015/08/11 09:30:32 ozaki-r Exp $");
 
 #include "opt_net_mpsafe.h"
 
@@ -2248,9 +2248,6 @@ nd6_output(struct ifnet *ifp, struct ifn
 		 * it is tolerable, because this should be a rare case.
 		 */
 		if (nd6_is_addr_neighbor(dst, ifp)) {
-			if (rt != NULL && rt != rt00)
-				rtfree(rt);
-
 			RTFREE_IF_NEEDED(rt);
 			rt = nd6_lookup(&dst->sin6_addr, 1, ifp);
 			if (rt != NULL)

Reply via email to