diff options
Diffstat (limited to 'sys/netinet/ip_flow.c')
-rw-r--r-- | sys/netinet/ip_flow.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/ip_flow.c b/sys/netinet/ip_flow.c index f2e23ea..25b8fce 100644 --- a/sys/netinet/ip_flow.c +++ b/sys/netinet/ip_flow.c @@ -352,7 +352,9 @@ ipflow_create(const struct route *ro, struct mbuf *m) * Fill in the updated information. */ ipf->ipf_ro = *ro; + RT_LOCK(ro->ro_rt); ro->ro_rt->rt_refcnt++; + RT_UNLOCK(ro->ro_rt); ipf->ipf_timer = IPFLOW_TIMER; /* * Insert into the approriate bucket of the flow table. |