summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/net/if_stf.c4
-rw-r--r--sys/netinet/in_gif.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/net/if_stf.c b/sys/net/if_stf.c
index 2f53c44..dfb9aea 100644
--- a/sys/net/if_stf.c
+++ b/sys/net/if_stf.c
@@ -607,10 +607,10 @@ stf_checkaddr4(sc, in, inifp)
(u_int32_t)ntohl(sin.sin_addr.s_addr));
#endif
if (rt)
- rtfree(rt);
+ RTFREE_LOCKED(rt);
return -1;
}
- rtfree(rt);
+ RTFREE_LOCKED(rt);
}
return 0;
diff --git a/sys/netinet/in_gif.c b/sys/netinet/in_gif.c
index e70a6f8..3363105 100644
--- a/sys/netinet/in_gif.c
+++ b/sys/netinet/in_gif.c
@@ -374,10 +374,10 @@ gif_validate4(const struct ip *ip, struct gif_softc *sc, struct ifnet *ifp)
(u_int32_t)ntohl(sin.sin_addr.s_addr));
#endif
if (rt)
- rtfree(rt);
+ RTFREE_LOCKED(rt);
return 0;
}
- rtfree(rt);
+ RTFREE_LOCKED(rt);
}
return 32 * 2;
OpenPOWER on IntegriCloud