summaryrefslogtreecommitdiffstats
path: root/sys/net/route.c
diff options
context:
space:
mode:
authorzec <zec@FreeBSD.org>2009-05-02 05:02:28 +0000
committerzec <zec@FreeBSD.org>2009-05-02 05:02:28 +0000
commitd4df3d2519922e424f58ad340ea2ab9df3faff71 (patch)
treefa5701362eff82a4628fa6534f566eb9965fdb9d /sys/net/route.c
parent3bbbb5aaddc89f0f2a14b65eeb66a1968b78970f (diff)
downloadFreeBSD-src-d4df3d2519922e424f58ad340ea2ab9df3faff71.zip
FreeBSD-src-d4df3d2519922e424f58ad340ea2ab9df3faff71.tar.gz
Unbreak options VIMAGE + nooptions INVARIANTS kernel builds.
Submitted by: julian Approved by: julian (mentor)
Diffstat (limited to 'sys/net/route.c')
-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 4ebdaf6..195145c 100644
--- a/sys/net/route.c
+++ b/sys/net/route.c
@@ -1131,10 +1131,10 @@ bad:
int
rt_setgate(struct rtentry *rt, struct sockaddr *dst, struct sockaddr *gate)
{
- INIT_VNET_NET(curvnet);
/* XXX dst may be overwritten, can we move this to below */
int dlen = SA_SIZE(dst), glen = SA_SIZE(gate);
#ifdef INVARIANTS
+ INIT_VNET_NET(curvnet);
struct radix_node_head *rnh =
V_rt_tables[rt->rt_fibnum][dst->sa_family];
#endif
OpenPOWER on IntegriCloud