rtfree() must be called in lock context.

Reported by:	jhay
This commit is contained in:
ume 2003-10-18 17:46:23 +00:00
parent 313310b9a6
commit 42120d22ea

View File

@ -1894,6 +1894,7 @@ nd6_output(ifp, origifp, m0, dst, rt0)
if (rt->rt_gwroute == 0)
goto lookup;
if (((rt = rt->rt_gwroute)->rt_flags & RTF_UP) == 0) {
RT_LOCK(rt);
rtfree(rt); rt = rt0;
lookup:
rt->rt_gwroute = rtalloc1(rt->rt_gateway, 1, 0UL);