aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce M Simpson <bms@FreeBSD.org>2003-09-24 21:51:13 +0000
committerBruce M Simpson <bms@FreeBSD.org>2003-09-24 21:51:13 +0000
commit6075b2bf9d41f193c5d0f8987c5d5bc4686c519a (patch)
tree886b4d74c5d2459d1c98bdc5ae541060170d4614
parent545e713f93c5fdc915aea11ede9e90e0b01c773c (diff)
downloadsrc-6075b2bf9d41f193c5d0f8987c5d5bc4686c519a.tar.gz
src-6075b2bf9d41f193c5d0f8987c5d5bc4686c519a.zip
Fix a logic error in the check to see if arplookup() should free the route.
Noticed by: Mike Hogsett Reviewed by: ru
Notes
Notes: svn path=/releng/4.4/; revision=120420
-rw-r--r--sys/netinet/if_ether.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c
index 334b1da4a411..f46c98711209 100644
--- a/sys/netinet/if_ether.c
+++ b/sys/netinet/if_ether.c
@@ -802,7 +802,7 @@ arplookup(addr, create, proxy)
/* If there are no references to this route, purge it */
if (rt->rt_refcnt <= 0 &&
- (rt->rt_flags & RTF_WASCLONED) != RTF_WASCLONED) {
+ (rt->rt_flags & RTF_WASCLONED) == RTF_WASCLONED) {
rtrequest(RTM_DELETE,
(struct sockaddr *)rt_key(rt),
rt->rt_gateway, rt_mask(rt),