summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/netinet/if_ether.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c
index 22ca55e..a5b89e7 100644
--- a/sys/netinet/if_ether.c
+++ b/sys/netinet/if_ether.c
@@ -924,8 +924,7 @@ arplookup(addr, create, proxy)
inet_ntoa(sin.sin_addr), why);
/* If there are no references to this route, purge it */
- if (rt->rt_refcnt <= 0 &&
- (rt->rt_flags & RTF_WASCLONED) != RTF_WASCLONED) {
+ if (rt->rt_refcnt <= 0 && (rt->rt_flags & RTF_WASCLONED)) {
rtrequest(RTM_DELETE,
(struct sockaddr *)rt_key(rt),
rt->rt_gateway, rt_mask(rt),
OpenPOWER on IntegriCloud