]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: Intentionally stop some timers on instance removal
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 1 Aug 2018 13:29:43 +0000 (09:29 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 1 Aug 2018 13:51:46 +0000 (09:51 -0400)
commitc969b2edae68816f42a3893ac6dba7873e83981b
tree8f26aa4331a76a4d60699fcceff39e9b46fcaf15
parentaa0b1d3b606652894c5a0e124632fa86b83aa6b6
bgpd: Intentionally stop some timers on instance removal

When a bgp instance is stopped, with a `no router bgp..`
make sure any timers associated with the instance are stopped
as well.

This issue was discovered when a customer issued a `no router bgp`
while a maxmed timer was operative.  The max-med timer used the
`struct bgp *` as the passed in value for the thread.  The
thread eventually popped after the cleanup and attempted to use
data off in lala land and crashed

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