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
commit4c3a1df1caeb40d6befd9b2ccfc52f0af8a80044 (patch)
tree04bbfecec2f729595e7d93186632b6e0e18a8e09
parent86b3a2088e55810222fb765837135fd098a9b936 (diff)
downloadsrc-4c3a1df1caeb40d6befd9b2ccfc52f0af8a80044.tar.gz
src-4c3a1df1caeb40d6befd9b2ccfc52f0af8a80044.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.3/; 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 947c7094d230..cd5c0fbc471a 100644
--- a/sys/netinet/if_ether.c
+++ b/sys/netinet/if_ether.c
@@ -794,7 +794,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),