diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-10-17 17:58:16 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-10-17 17:58:16 +0000 |
commit | 8550a8d3b56f97ed6037dfd5c4584ebf2f73c285 (patch) | |
tree | 234491abc9ea80a3ee8d8515c668800ca3bce8be /usr.sbin | |
parent | 2fbcf13eaffc4448bef6f654bb544da3522ff6c4 (diff) |
Remove bogus plen != 0xff check
OK tb@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bgpd/session.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c index ed809c4ce6b..62abb00280b 100644 --- a/usr.sbin/bgpd/session.c +++ b/usr.sbin/bgpd/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.449 2023/10/16 10:25:46 claudio Exp $ */ +/* $OpenBSD: session.c,v 1.450 2023/10/17 17:58:15 claudio Exp $ */ /* * Copyright (c) 2003, 2004, 2005 Henning Brauer <henning@openbsd.org> @@ -1241,8 +1241,7 @@ get_alternate_addr(struct bgpd_addr *local, struct bgpd_addr *remote, plen = mask2prefixlen( match->ifa_addr->sa_family, match->ifa_netmask); - if (plen != 0xff && - prefix_compare(local, remote, plen) == 0) + if (prefix_compare(local, remote, plen) == 0) connected = 1; } break; |