From c19b5290ce3653764884100bbbb5504338cb2068 Mon Sep 17 00:00:00 2001 From: shin Date: Sat, 15 Jan 2000 07:27:12 +0000 Subject: Clear ro->ro_rt just after RTFREE(). Pleases let me make sure that no one touch the invalid ro_rt pointer, after splx(s) and before next ro_rt initialization. Though usually this seems to be already called at splnet, I still sometime experience kernel crash at rtfree() in my INET6 enabled environment where IPv6 connection is frequently used. (Off-course, it might be just due to another bug.) --- sys/net/route.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/net/route.c') diff --git a/sys/net/route.c b/sys/net/route.c index f2b187f..3a8c887 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -105,6 +105,7 @@ rtalloc_ign(ro, ignore) /* XXX - We are probably always at splnet here already. */ s = splnet(); RTFREE(rt); + ro->ro_rt = NULL; splx(s); } ro->ro_rt = rtalloc1(&ro->ro_dst, 1, ignore); -- cgit v1.1