diff options
author | bms <bms@FreeBSD.org> | 2003-09-24 20:52:25 +0000 |
---|---|---|
committer | bms <bms@FreeBSD.org> | 2003-09-24 20:52:25 +0000 |
commit | c4d2292202afe3344f934435b87b7febdae7b91b (patch) | |
tree | 5225d064fd91e8fe2a9818eb5ddbce14158aeb98 | |
parent | 0b9dcf309210c0994f60f3194f390e395a662866 (diff) | |
download | FreeBSD-src-c4d2292202afe3344f934435b87b7febdae7b91b.zip FreeBSD-src-c4d2292202afe3344f934435b87b7febdae7b91b.tar.gz |
Fix a logic error in the check to see if arplookup() should free the route.
Noticed by: Mike Hogsett
Reviewed by: ru
-rw-r--r-- | sys/netinet/if_ether.c | 3 |
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), |