summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/in6.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2003-11-08 23:36:32 +0000
committersam <sam@FreeBSD.org>2003-11-08 23:36:32 +0000
commitc997776d7c832608d60560c380ff43549d2dbe3a (patch)
tree216d7a328008c2857f9b286342d5087eea1cc6a5 /sys/netinet6/in6.c
parent1cd9ce158fbe3f8fd872eff74a1cfd939dea5515 (diff)
downloadFreeBSD-src-c997776d7c832608d60560c380ff43549d2dbe3a.zip
FreeBSD-src-c997776d7c832608d60560c380ff43549d2dbe3a.tar.gz
replace explicit changes to rt_refcnt by RT_ADDREF and RT_REMREF
macros that expand to include assertions when the system is built with INVARIANTS Supported by: FreeBSD Foundation
Diffstat (limited to 'sys/netinet6/in6.c')
-rw-r--r--sys/netinet6/in6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c
index ae01112..e8e8652 100644
--- a/sys/netinet6/in6.c
+++ b/sys/netinet6/in6.c
@@ -197,7 +197,7 @@ in6_ifloop_request(int cmd, struct ifaddr *ifa)
rtfree(nrt);
} else {
/* the cmd must be RTM_ADD here */
- nrt->rt_refcnt--;
+ RT_REMREF(nrt);
RT_UNLOCK(nrt);
}
}
OpenPOWER on IntegriCloud