PERFORCE change 40343 for review

Sam Leffler sam at FreeBSD.org
Thu Oct 23 14:11:16 PDT 2003


http://perforce.freebsd.org/chv.cgi?CH=40343

Change 40343 by sam at sam_ebb on 2003/10/23 14:10:32

	correctly fix bogus RTFREE in andre's patch

Affected files ...

.. //depot/projects/netperf/sys/netinet6/in6_src.c#12 edit

Differences ...

==== //depot/projects/netperf/sys/netinet6/in6_src.c#12 (text+ko) ====

@@ -280,6 +280,11 @@
 			if (ia6 == 0) /* xxx scope error ?*/
 				ia6 = ifatoia6(ro->ro_rt->rt_ifa);
 		}
+		/*
+		 * Reclaim route allocated only for local use.
+		 */
+		if (ro == &sro && ro->ro_rt)
+			RTFREE(ro->ro_rt);
 		if (ia6 == 0) {
 			*errorp = EHOSTUNREACH;	/* no route */
 			return (0);


More information about the p4-projects mailing list