diff options
Diffstat (limited to 'sys/net/if_faith.c')
-rw-r--r-- | sys/net/if_faith.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if_faith.c b/sys/net/if_faith.c index 761f151..8a9cb7c 100644 --- a/sys/net/if_faith.c +++ b/sys/net/if_faith.c @@ -270,6 +270,8 @@ faithrtrequest(cmd, rt, info) struct rtentry *rt; struct rt_addrinfo *info; { + RT_LOCK_ASSERT(rt); + if (rt) { rt->rt_rmx.rmx_mtu = rt->rt_ifp->if_mtu; /* for ISO */ /* @@ -371,7 +373,7 @@ faithprefix(in6) else ret = 0; if (rt) - RTFREE(rt); + RTFREE_LOCKED(rt); return ret; } #endif |