]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: rmap_type is 8 bit but we have 9 bits of flags 5048/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 24 Sep 2019 12:24:10 +0000 (08:24 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 24 Sep 2019 12:33:55 +0000 (08:33 -0400)
commitd15d460d35a788ccf65173e4c6aba8a33672ec98
tree1d818ca31222fe6f2e4074f8d626f8d7fb67611a
parent8a45d667fb373625f7d949242fe83c9847819b05
bgpd: rmap_type is 8 bit but we have 9 bits of flags

The newly added PEER_RMAP_TYPE_AGGREGATE flag is setup to
be the 9th bit:

But the flag we are putting it into:
uint8_t rmap_type;

is 8 bits.  Adjust the size.

Found by Coverity SA Scan
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgpd.h