Merge pull request #14780 from fdumontet6WIND/coverity

bgpd: fix coverity issue in bgp_snmp_bgp4v2.c
This commit is contained in:
Donatas Abraitis 2023-11-14 09:48:15 +02:00 committed by GitHub
commit c5e37f2978
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -452,6 +452,7 @@ bgp4v2PathAttrLookup(struct variable *v, oid name[], size_t *length,
return NULL;
afi = afi_iana2int(name[namelen - 1]);
afi_len = afi == AFI_IP ? IN_ADDR_SIZE : IN6_ADDR_SIZE;
assert(IS_VALID_AFI(afi));
#define BGP_NLRI_ENTRY_OFFSET namelen