diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-08-25 14:07:58 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-08-25 17:37:07 +0200 |
commit | 1e9f448fe1b60e464d187c96092d2cf6201e64e1 (patch) | |
tree | 381ed303a9f00d6534be36b2e5671f6b4ed656e6 /zebra/zebra_vrf.c | |
parent | *: Add RMAP_COMPILE_SUCCESS to enum (diff) | |
download | frr-1e9f448fe1b60e464d187c96092d2cf6201e64e1.tar.xz frr-1e9f448fe1b60e464d187c96092d2cf6201e64e1.zip |
zebra: Coverity Code Cleanup
1) Various socket close issues
2) Ensure afi passed is usable
3) Fix some reads beyond buffer and reads after free
4) Ensure some failure modes are handled properly
5) Memory Leak(s) fix
6) There is no 6.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_vrf.c')
-rw-r--r-- | zebra/zebra_vrf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/zebra/zebra_vrf.c b/zebra/zebra_vrf.c index 82c0524a8..0a26ac6ad 100644 --- a/zebra/zebra_vrf.c +++ b/zebra/zebra_vrf.c @@ -470,6 +470,10 @@ static int vrf_config_write(struct vty *vty) RB_FOREACH(vrf, vrf_name_head, &vrfs_by_name) { zvrf = vrf->info; + + if (!zvrf) + continue; + if (strcmp(zvrf_name(zvrf), VRF_DEFAULT_NAME)) { vty_out(vty, "vrf %s\n", zvrf_name(zvrf)); vty_out(vty, "!\n"); |