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/ip6_input.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/ip6_input.c')
-rw-r--r-- | sys/netinet6/ip6_input.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c index 14c681791b9..76424275ee3 100644 --- a/sys/netinet6/ip6_input.c +++ b/sys/netinet6/ip6_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip6_input.c,v 1.129 2014/09/27 12:26:16 mpi Exp $ */ +/* $OpenBSD: ip6_input.c,v 1.130 2014/10/14 09:52:26 mpi Exp $ */ /* $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $ */ /* @@ -439,8 +439,8 @@ ip6_input(struct mbuf *m) if (ip6_forward_rt.ro_rt) { /* route is down or destination is different */ ip6stat.ip6s_forward_cachemiss++; - RTFREE(ip6_forward_rt.ro_rt); - ip6_forward_rt.ro_rt = 0; + rtfree(ip6_forward_rt.ro_rt); + ip6_forward_rt.ro_rt = NULL; } bzero(&ip6_forward_rt.ro_dst, sizeof(struct sockaddr_in6)); |