aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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),