]> git.proxmox.com Git - mirror_frr.git/commit - lib/vty.c
bgpd, lib, nhrpd, zebra: verify return of sockunion2hostprefix
authorDonald Sharp <sharpd@nvidia.com>
Wed, 18 Nov 2020 16:04:27 +0000 (11:04 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 18 Nov 2020 16:04:27 +0000 (11:04 -0500)
commit0154d8ce45a5099d2d0b9dd3de4e67d4a902d3f5
tree2d1cde92342b90447d03b52d89b8e6809a9fc265
parentb83bb9aa629a0361bc76fa90beb6f6e7d2b57332
bgpd, lib, nhrpd, zebra: verify return of sockunion2hostprefix

The return from sockunion2hostprefix tells us if the conversion
succeeded or not.  There are places in the code where we
always assume that it just `works`, since it can fail
notice and try to do the right thing.

Please note that failure of this function for most cases
of sockunion2hostprefix is highly highly unlikely as that
the sockunion was already created and tested elsewhere
it's just that this function can fail.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_bmp.c
bgpd/bgp_network.c
bgpd/bgp_route.c
bgpd/bgp_vty.c
bgpd/bgpd.c
lib/vty.c
nhrpd/nhrp_cache.c
nhrpd/nhrp_shortcut.c
zebra/zebra_vty.c