Merge pull request #10097 from pguibert6WIND/ipv6_fix_ecom_list

bgpd: support redirect import more than one route-target ipv6
This commit is contained in:
Donatas Abraitis 2021-11-19 14:50:01 +02:00 committed by GitHub
commit 41eec96003
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -934,7 +934,7 @@ char *ecommunity_ecom2str(struct ecommunity *ecom, int format, int filter)
strlcat(str_buf, " ", str_size);
/* Retrieve value field */
pnt = ecom->val + (i * 8);
pnt = ecom->val + (i * ecom->unit_size);
/* High-order octet is the type */
type = *pnt++;