diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2017-08-26 01:27:22 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2017-08-26 01:46:40 +0200 |
commit | 8c9cc7bbf657e3440d9bc758fe45aef5f43c989f (patch) | |
tree | 414bc255a10402911772a195625fa819afcdd3ff /bgpd/bgp_attr.h | |
parent | *: fix compiler warnings (diff) | |
download | frr-8c9cc7bbf657e3440d9bc758fe45aef5f43c989f.tar.xz frr-8c9cc7bbf657e3440d9bc758fe45aef5f43c989f.zip |
bgpd: encap: fix extension sizing
Variably-sized struct tails are done as [0], not [1]. The latter
triggers compiler warnings and mis-sizes "sizeof(struct) + n"
expressions.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to '')
-rw-r--r-- | bgpd/bgp_attr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_attr.h b/bgpd/bgp_attr.h index 324813c08..4dd38459f 100644 --- a/bgpd/bgp_attr.h +++ b/bgpd/bgp_attr.h @@ -72,7 +72,7 @@ struct bgp_attr_encap_subtlv { unsigned long refcnt; uint16_t type; uint16_t length; - uint8_t value[1]; /* will be extended */ + uint8_t value[0]; /* will be extended */ }; #if ENABLE_BGP_VNC |