diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-09-23 08:49:47 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-09-23 08:49:47 +0000 |
commit | 7f73a7668a46b82c82c6a81e30a77113b9193919 (patch) | |
tree | f8c210384a91c1b25474d2e74fcf03a8964f8234 /sys/netmpls/mpls_input.c | |
parent | 862c5e15d06293fdd79f850f89f209f76302a1e8 (diff) |
Always increment rt_use inside rtalloc(9) instead of doing it in some
specific places.
ok claudio@, benno@
Diffstat (limited to 'sys/netmpls/mpls_input.c')
-rw-r--r-- | sys/netmpls/mpls_input.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netmpls/mpls_input.c b/sys/netmpls/mpls_input.c index 3499087c275..f269108c344 100644 --- a/sys/netmpls/mpls_input.c +++ b/sys/netmpls/mpls_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpls_input.c,v 1.49 2015/09/13 17:53:44 mpi Exp $ */ +/* $OpenBSD: mpls_input.c,v 1.50 2015/09/23 08:49:46 mpi Exp $ */ /* * Copyright (c) 2008 Claudio Jeker <claudio@openbsd.org> @@ -182,7 +182,6 @@ do_v6: goto done; } - rt->rt_use++; rt_mpls = (struct rt_mpls *)rt->rt_llinfo; if (rt_mpls == NULL || (rt->rt_flags & RTF_MPLS) == 0) { @@ -449,7 +448,6 @@ mpls_do_error(struct mbuf *m, int type, int code, int destmtu) m_freem(m); return (NULL); } - rt->rt_use++; KERNEL_LOCK(); rtfree(rt); if (icmp_reflect(m, NULL, ia)) { |