]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: fix off-by-one in attribute flags handling
authorChristian Franke <nobody@nowhere.ws>
Tue, 14 Jun 2016 18:07:00 +0000 (20:07 +0200)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 21 Oct 2016 00:28:26 +0000 (20:28 -0400)
commit099111efa997efa69596cff9b3a598464fc854cf
tree653222f539001c05169bf8a4c5a686ca7ed31aef
parentb84ee83b10473391caa7a8dbc3d7a21f9558a95d
bgpd: fix off-by-one in attribute flags handling

bgp_attr_flag_invalid can access beyond the last element of attr_flags_values.
Fix this by initializing attr_flags_values_max to the correct value.

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_attr.c