]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Small changes
authorIgor Putovny <igor.putovny@nic.cz>
Fri, 20 Jun 2025 11:55:09 +0000 (13:55 +0200)
committerIgor Putovny <igor.putovny@nic.cz>
Fri, 20 Jun 2025 11:55:57 +0000 (13:55 +0200)
proto/bgp/bgp.h
proto/bgp/packets.c

index 483eadd8b43a0f64dc406674871f31e53288f48a..2ed02ea2b291cfc40b13e90ffb3636b519e64d69 100644 (file)
@@ -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 {
index 73e62170573bd700f05e091b98859c091ff3cce8..18603b9539d6e8c54e3d1f4635b45cc569e9ad88 100644 (file)
@@ -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);