summaryrefslogtreecommitdiff
path: root/zebra/kernel_socket.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-07-27 09:36:17 -0400
committerDonald Sharp <sharpd@nvidia.com>2022-07-27 09:36:17 -0400
commitd880a643d75e1f6a2845a49843c703fc4e5a0610 (patch)
treed3c62a8089c867d0b04cc25de7eb8700660fbf09 /zebra/kernel_socket.c
parent8d4abfc9b97584af13b9188b5c1495e465651b09 (diff)
bgpd: Ensure we are not using AFI_MAX
When using bgp_vty_afi_from_str it can return AFI_MAX( but in practice never will with our cli ). In bgp_default_afi_safi_cmd the code directly references: bgp->default_afi[afi][safi] = TRUE; and if afi is AFI_MAX FRRR would be accessing memory where it should not be. Let's just provide some assurances for coverity that this never happens. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/kernel_socket.c')
0 files changed, 0 insertions, 0 deletions