artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06914b1
)
Remove bogus plen != 0xff check
author
claudio
<claudio@openbsd.org>
Tue, 17 Oct 2023 17:58:15 +0000
(17:58 +0000)
committer
claudio
<claudio@openbsd.org>
Tue, 17 Oct 2023 17:58:15 +0000
(17:58 +0000)
OK tb@
usr.sbin/bgpd/session.c
patch
|
blob
|
history
diff --git
a/usr.sbin/bgpd/session.c
b/usr.sbin/bgpd/session.c
index
ed809c4
..
62abb00
100644
(file)
--- a/
usr.sbin/bgpd/session.c
+++ b/
usr.sbin/bgpd/session.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: session.c,v 1.4
49 2023/10/16 10:25:46
claudio Exp $ */
+/* $OpenBSD: session.c,v 1.4
50 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;