diff options
author | sam <sam@FreeBSD.org> | 2003-11-08 23:36:32 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2003-11-08 23:36:32 +0000 |
commit | c997776d7c832608d60560c380ff43549d2dbe3a (patch) | |
tree | 216d7a328008c2857f9b286342d5087eea1cc6a5 /sys/netinet/if_atm.c | |
parent | 1cd9ce158fbe3f8fd872eff74a1cfd939dea5515 (diff) | |
download | FreeBSD-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/netinet/if_atm.c')
-rw-r--r-- | sys/netinet/if_atm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/if_atm.c b/sys/netinet/if_atm.c index 5a9e53e..b19502a 100644 --- a/sys/netinet/if_atm.c +++ b/sys/netinet/if_atm.c @@ -320,7 +320,7 @@ atmresolve(struct rtentry *rt, struct mbuf *m, struct sockaddr *dst, rt = RTALLOC1(dst, 0); if (rt == NULL) goto bad; /* failed */ - rt->rt_refcnt--; /* don't keep LL references */ + RT_REMREF(rt); /* don't keep LL references */ if ((rt->rt_flags & RTF_GATEWAY) != 0 || (rt->rt_flags & RTF_LLINFO) == 0 || /* XXX: are we using LLINFO? */ |