]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: On cleanup make sure pointers exist
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 26 May 2017 15:54:07 +0000 (11:54 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 12 Jul 2017 19:07:54 +0000 (15:07 -0400)
commitea3ce9a1a5798511fbbe7905e9b2228f1954ae01
treeff6497d4f93efaea69140ac18e25c7535bb59c66
parentaf0daa50be3f296648e47ae9a112c97736987500
bgpd: On cleanup make sure pointers exist

Test cases create fake bgp structure that is passed to
cleanup.  The new evpn code assumed ( and probably rightly so)
that if the bgp structure was created it actually initialized
all useful data structures.  Just make the evpn cleanup
functions be smart about attempting to free memory never
allocated.

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