diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-01-07 22:19:00 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-01-07 22:19:00 +0000 |
commit | b9804b73bf42fce25801bd13e1612beb5a858d24 (patch) | |
tree | 7e3edbaffd2a1ef4a0a37dbec54745df2073d63d /sys/net | |
parent | e2191b3b522f64cab64fd7a031c2fa7c5e92bf82 (diff) |
in ifa_ifwithroute(), ensure we have a route to our gateway, for tunnels; cmetz
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/route.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/route.c b/sys/net/route.c index a06adc5d384..c2553f6d22d 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.7 1997/12/31 04:25:13 mickey Exp $ */ +/* $OpenBSD: route.c,v 1.8 1999/01/07 22:18:59 deraadt Exp $ */ /* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */ /* @@ -328,7 +328,7 @@ ifa_ifwithroute(flags, dst, gateway) if (ifa == NULL) ifa = ifa_ifwithnet(gateway); if (ifa == NULL) { - struct rtentry *rt = rtalloc1(dst, 0); + struct rtentry *rt = rtalloc1(gateway, 0); if (rt == NULL) return (NULL); rt->rt_refcnt--; |