diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-11-21 19:00:11 -0500 | 
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-11-21 19:05:51 -0500 | 
| commit | 21c64e0895b4ad050474d417ccd1d43a30eb9ab9 (patch) | |
| tree | 58c6a4b5c3068055de0a399c3e052d31754c5af0 /bgpd/bgp_ecommunity.c | |
| parent | 2d7ef3bba7eeb00adf2aceeca4747b59f4ac5fc7 (diff) | |
bgpd: remove extra ecom attr ptr increment
Copy paste leads to invalid read of 1 byte off the heap when converting
extended community attributes into strings.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_ecommunity.c')
| -rw-r--r-- | bgpd/bgp_ecommunity.c | 1 | 
1 files changed, 0 insertions, 1 deletions
diff --git a/bgpd/bgp_ecommunity.c b/bgpd/bgp_ecommunity.c index 11f5a326df..942f0ae415 100644 --- a/bgpd/bgp_ecommunity.c +++ b/bgpd/bgp_ecommunity.c @@ -822,7 +822,6 @@ char *ecommunity_ecom2str(struct ecommunity *ecom, int format, int filter)  				   == ECOMMUNITY_EVPN_SUBTYPE_ES_IMPORT_RT) {  				struct ethaddr mac; -				pnt++;  				memcpy(&mac, pnt, ETH_ALEN);  				len = sprintf(  					str_buf + str_pnt,  | 
