diff options
-rw-r--r-- | sys/net/route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/route.c b/sys/net/route.c index 884f0eb..7454280 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -425,7 +425,7 @@ ifa_ifwithroute(flags, dst, gateway) if (ifa == 0) ifa = ifa_ifwithnet(gateway); if (ifa == 0) { - struct rtentry *rt = rtalloc1(dst, 0, 0UL); + struct rtentry *rt = rtalloc1(gateway, 0, 0UL); if (rt == 0) return (0); rt->rt_refcnt--; |