svn commit: r300054 - head/sys/netinet6

Andrey V. Elsukov ae at FreeBSD.org
Tue May 17 14:06:57 UTC 2016


Author: ae
Date: Tue May 17 14:06:55 2016
New Revision: 300054
URL: https://svnweb.freebsd.org/changeset/base/300054

Log:
  Call RO_RTFREE() when we have detected the change of destination
  address, otherwise the old route will be used with new destination.
  
  MFC after:	1 week

Modified:
  head/sys/netinet6/ip6_output.c

Modified: head/sys/netinet6/ip6_output.c
==============================================================================
--- head/sys/netinet6/ip6_output.c	Tue May 17 14:02:05 2016	(r300053)
+++ head/sys/netinet6/ip6_output.c	Tue May 17 14:06:55 2016	(r300054)
@@ -826,8 +826,10 @@ again:
 #endif
 			error = netisr_queue(NETISR_IPV6, m);
 			goto done;
-		} else
+		} else {
+			RO_RTFREE(ro);
 			needfiblookup = 1; /* Redo the routing table lookup. */
+		}
 	}
 	/* See if fib was changed by packet filter. */
 	if (fibnum != M_GETFIB(m)) {


More information about the svn-src-head mailing list