]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Fix off by one error introduced by 8c9cc7bbf657e3440d9bc758fe45aef5f43c989f
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 18 Oct 2017 22:37:38 +0000 (18:37 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 18 Oct 2017 22:37:38 +0000 (18:37 -0400)
commit12f7047895612c5368c476806a5127500b43243e
treecf5618fd1369ad71bb3e01ef6c11ee5b97cfaf3a
parent5e3dd606da1c725466d9c5027af7d3e2f04f4b2e
bgpd: Fix off by one error introduced by 8c9cc7bbf657e3440d9bc758fe45aef5f43c989f

Commit 8c9cc7bbf657e3440d9bc758fe45aef5f43c989f changed the size
of the `struct bgp_attr_encap_subtlv` type to be a zero length
array at the end instead of having a 1 byte.  All memory allocations
for this subsuquently were off by 1 byte since those were not
adjusted either.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_attr.c
bgpd/bgp_encap_tlv.c
bgpd/rfapi/rfapi.c