]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: Move extra free code and fix a bug.
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 12 Jun 2018 14:38:37 +0000 (10:38 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 12 Jun 2018 19:12:48 +0000 (15:12 -0400)
commitc93a3b77e66ae60d618297eadb6319c519a22ee4
treece7961bb94de770d1067062d20d6e38b8b945f9c
parentefb02f8814049664caa7a824652defcfb3b4f2b1
bgpd: Move extra free code and fix a bug.

The bgp_info_extra_free code was the correct place to free
up data associated with the bgp_info pointer when we are
deleting the bgp_info node.

Additionally, if we have a parent pointer, we may not have a net
pointer.  So make sure we do.

Finally clean up the bgp_info_extra_free code so it is a bit
easier to read.  Use variables instead of multiple level
of casting.

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