]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: Ensure virt->vrfs is valid
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 22 May 2018 14:54:20 +0000 (10:54 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 22 May 2018 14:54:20 +0000 (10:54 -0400)
commit5d9cbca2266cfe7ee03ef85844dd71de77d2ee39
tree84e375bf998a8dbac168abee739c47b3eb1946ad
parentb1ab0dfe2013b5408fe18d65d0aff15b401fbb50
bgpd: Ensure virt->vrfs is valid

Move the list_delete_and_null of the virt->vrfs code to
the actual deletion function to ensure proper lifecycle.
This assumption allows us to know that irt->vrfs is always
true so remove the NULL check on it.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_evpn.c