PERFORCE change 40369 for review
Sam Leffler
sam at FreeBSD.org
Thu Oct 23 21:59:00 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=40369
Change 40369 by sam at sam_ebb on 2003/10/23 21:58:22
re-apply earlier fix to correctly recognize when the
reference to a locally allocate routing table entry
needs to be reclaimed
Affected files ...
.. //depot/projects/hostcache/sys/netinet6/in6_src.c#4 edit
Differences ...
==== //depot/projects/hostcache/sys/netinet6/in6_src.c#4 (text+ko) ====
@@ -280,8 +280,8 @@
if (ia6 == 0) /* xxx scope error ?*/
ia6 = ifatoia6(ro->ro_rt->rt_ifa);
}
- if (sro.ro_rt)
- RTFREE(sro.ro_rt);
+ 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