summaryrefslogtreecommitdiff
path: root/proto/bgp/packets.c
diff options
context:
space:
mode:
authorAlexander Azimov <a.e.azimov@gmail.com>2019-04-30 13:55:43 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2019-04-30 13:55:43 +0200
commit7ff34ca2cb86f3947bf049f73e76e6ce5d57e4a8 (patch)
tree1ac7bbeb1ae6bf1a7f434aff42d5a045633a4551 /proto/bgp/packets.c
parent0b1e1e1a007f860230855d0c9e8adc88969ee077 (diff)
BGP: Compliance with RFC8203bis
Diffstat (limited to 'proto/bgp/packets.c')
-rw-r--r--proto/bgp/packets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c
index d348ebc1..c7cc1d01 100644
--- a/proto/bgp/packets.c
+++ b/proto/bgp/packets.c
@@ -2893,7 +2893,7 @@ bgp_handle_message(struct bgp_proto *p, byte *data, uint len, byte **bp)
return 1;
/* Handle proper message */
- if ((msg_len > 128) && (msg_len + 1 > len))
+ if ((msg_len > 255) && (msg_len + 1 > len))
return 0;
/* Some elementary cleanup */