summaryrefslogtreecommitdiffstats
path: root/sys/netinet/if_ether.c
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2003-09-24 20:52:25 +0000
committerbms <bms@FreeBSD.org>2003-09-24 20:52:25 +0000
commitc4d2292202afe3344f934435b87b7febdae7b91b (patch)
tree5225d064fd91e8fe2a9818eb5ddbce14158aeb98 /sys/netinet/if_ether.c
parent0b9dcf309210c0994f60f3194f390e395a662866 (diff)
downloadFreeBSD-src-c4d2292202afe3344f934435b87b7febdae7b91b.zip
FreeBSD-src-c4d2292202afe3344f934435b87b7febdae7b91b.tar.gz
Fix a logic error in the check to see if arplookup() should free the route.
Noticed by: Mike Hogsett Reviewed by: ru
Diffstat (limited to 'sys/netinet/if_ether.c')
-rw-r--r--sys/netinet/if_ether.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c
index 22ca55e..a5b89e7 100644
--- a/sys/netinet/if_ether.c
+++ b/sys/netinet/if_ether.c
@@ -924,8 +924,7 @@ arplookup(addr, create, proxy)
inet_ntoa(sin.sin_addr), why);
/* If there are no references to this route, purge it */
- if (rt->rt_refcnt <= 0 &&
- (rt->rt_flags & RTF_WASCLONED) != RTF_WASCLONED) {
+ if (rt->rt_refcnt <= 0 && (rt->rt_flags & RTF_WASCLONED)) {
rtrequest(RTM_DELETE,
(struct sockaddr *)rt_key(rt),
rt->rt_gateway, rt_mask(rt),
OpenPOWER on IntegriCloud