summaryrefslogtreecommitdiff
path: root/proto/bgp/packets.c
diff options
context:
space:
mode:
authorAlexander Azimov <a.e.azimov@gmail.com>2019-07-11 15:44:52 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2019-07-11 15:44:52 +0200
commit9ff6c8d83c7fee5f354d4d6ed4efc15bfc6bc7e1 (patch)
tree21a3c9023cb934052d8386904dc0c6b6c391179d /proto/bgp/packets.c
parent78c05cc159a51ecbbf6b15eda6f97b2b3c9e7187 (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 665a22c1..1f93cf56 100644
--- a/proto/bgp/packets.c
+++ b/proto/bgp/packets.c
@@ -1539,7 +1539,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 */