From dfe2c005af26bb9cac6d026353e2147169334220 Mon Sep 17 00:00:00 2001 From: claudio Date: Tue, 17 Oct 2023 17:58:15 +0000 Subject: [PATCH] Remove bogus plen != 0xff check OK tb@ --- usr.sbin/bgpd/session.c | 5 ++--- 1 file 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 @@ -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; -- 2.20.1