diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-11-14 09:48:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-14 09:48:15 +0200 |
| commit | c5e37f29785240fecd3b4901ce45bf61a31c961f (patch) | |
| tree | 2b15668c3368b9e7700d45abd7d03de70878dc0a | |
| parent | 70a2545309958572e6ff481352dfe7262b8e6cd0 (diff) | |
| parent | 0a988bd114cdf143fe301e3056189c095a2cc6f5 (diff) | |
Merge pull request #14780 from fdumontet6WIND/coverity
bgpd: fix coverity issue in bgp_snmp_bgp4v2.c
| -rw-r--r-- | bgpd/bgp_snmp_bgp4v2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgp_snmp_bgp4v2.c b/bgpd/bgp_snmp_bgp4v2.c index 34d07a09a5..3b499271c8 100644 --- a/bgpd/bgp_snmp_bgp4v2.c +++ b/bgpd/bgp_snmp_bgp4v2.c @@ -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 |
