--- route.c.orig Tue Jan 27 17:57:03 2004 +++ route.c Tue Jan 27 19:28:07 2004 @@ -1293,9 +1293,9 @@ rt_check(struct rtentry **lrt, struct rt rt = rt0; lookup: RT_UNLOCK(rt0); - rt = rtalloc1(rt->rt_gateway, 1, 0UL); + rt->rw_gwroute = rtalloc1(rt->rt_gateway, 1, 0UL); RT_LOCK(rt0); - rt0->rt_gwroute = rt; + rt = rt->rt_gwroute; if (rt == 0) { RT_UNLOCK(rt0); senderr(EHOSTUNREACH);