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
commitcd326b7ad6ca8004bf843c933214c938ebeecd6c (patch)
tree650a6314df4c942bb3bfa4cb965f6a2f54ff86fe
parent441cb4c376e0e8243ee1330445713c990838d443 (diff)
downloadsrc-cd326b7ad6ca8004bf843c933214c938ebeecd6c.tar.gz
src-cd326b7ad6ca8004bf843c933214c938ebeecd6c.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.6/; 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 317e2f8260df..a1838b1be10e 100644
--- a/sys/netinet/if_ether.c
+++ b/sys/netinet/if_ether.c
@@ -898,7 +898,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),