diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-10-14 09:52:27 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-10-14 09:52:27 +0000 |
commit | d2088c987301043e5adabf301336b772e26f4fb5 (patch) | |
tree | 15644a2345729ab10b6608a3790f4a1dd288d347 /sys/netinet6/frag6.c | |
parent | ba2e5af52d741397cb16517924af6926417af217 (diff) |
Use rtfree() instead of RTFREE(), NULLify some free'd route pointers and
kill the macro.
ok mikeb@, henning@
Diffstat (limited to 'sys/netinet6/frag6.c')
-rw-r--r-- | sys/netinet6/frag6.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet6/frag6.c b/sys/netinet6/frag6.c index 356b45ad66a..f23534f9b94 100644 --- a/sys/netinet6/frag6.c +++ b/sys/netinet6/frag6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: frag6.c,v 1.55 2014/09/27 12:26:16 mpi Exp $ */ +/* $OpenBSD: frag6.c,v 1.56 2014/10/14 09:52:26 mpi Exp $ */ /* $KAME: frag6.c,v 1.40 2002/05/27 21:40:31 itojun Exp $ */ /* @@ -200,7 +200,7 @@ frag6_input(struct mbuf **mp, int *offp, int proto) if (ro.ro_rt != NULL && ro.ro_rt->rt_ifa != NULL) dstifp = ifatoia6(ro.ro_rt->rt_ifa)->ia_ifp; if (ro.ro_rt != NULL) { - RTFREE(ro.ro_rt); + rtfree(ro.ro_rt); ro.ro_rt = NULL; } #else @@ -673,8 +673,8 @@ frag6_slowtimo(void) * destination and the cache is never replaced. */ if (ip6_forward_rt.ro_rt) { - RTFREE(ip6_forward_rt.ro_rt); - ip6_forward_rt.ro_rt = 0; + rtfree(ip6_forward_rt.ro_rt); + ip6_forward_rt.ro_rt = NULL; } splx(s); |