From: Igor Putovny Date: Fri, 20 Jun 2025 11:55:09 +0000 (+0200) Subject: Small changes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4f0af5e5a5b916465e73cf9639f30ef4b1c7f62;p=thirdparty%2Fbird.git Small changes --- diff --git a/proto/bgp/bgp.h b/proto/bgp/bgp.h index 483eadd8b..2ed02ea2b 100644 --- a/proto/bgp/bgp.h +++ b/proto/bgp/bgp.h @@ -350,7 +350,7 @@ struct bgp_conn { uint hold_time, keepalive_time, send_hold_time; /* Times calculated from my and neighbor's requirements */ - byte buf[8]; /* Buffer for missing capabilities message */ + byte buf[16]; /* Buffer for missing capabilities message */ }; struct bgp_proto { diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c index 73e621705..18603b953 100644 --- a/proto/bgp/packets.c +++ b/proto/bgp/packets.c @@ -3442,7 +3442,7 @@ bgp_format_capabilities(byte *data, uint len, byte *buf) { case 1: { /* Multiprotocol capability, RFC 4760 */ /* Capability length */ - if ((len >= 1 && data[1] != 4) || len < 6) + if ((len >= 1 && data[1] != 4) || len != 6) return bsprintf(buf, "multiprotocol"); u32 afi = get_af4(data + 2);