summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/route.c b/sys/net/route.c
index 565564a..365ec1e 100644
--- a/sys/net/route.c
+++ b/sys/net/route.c
@@ -513,7 +513,7 @@ rtredirect_fib(struct sockaddr *dst,
struct rt_addrinfo info;
struct ifaddr *ifa;
struct radix_node_head *rnh =
- V_rt_tables[rt->rt_fibnum][dst->sa_family];
+ V_rt_tables[fibnum][dst->sa_family];
/* verify the gateway is directly reachable */
if ((ifa = ifa_ifwithnet(gateway)) == NULL) {
OpenPOWER on IntegriCloud