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
commit9e1ddfe3c9f79fb658967cc12e94b87befd99c96 (patch)
tree21c5730524bb3ce58eeaeee088cd57f2c8e4d351
parentabcf474963420a79a15436ee87198b5abf8fe95f (diff)
downloadsrc-9e1ddfe3c9f79fb658967cc12e94b87befd99c96.tar.gz
src-9e1ddfe3c9f79fb658967cc12e94b87befd99c96.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/5.0/; 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 d0dfea0b674e..4726f59f83f7 100644
--- a/sys/netinet/if_ether.c
+++ b/sys/netinet/if_ether.c
@@ -928,7 +928,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),