]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: fix missing list add in dampening
authorIgor Ryzhov <iryzhov@nfware.com>
Thu, 29 Jul 2021 11:42:16 +0000 (14:42 +0300)
committerDonatas Abraitis <donatas.abraitis@gmail.com>
Thu, 29 Jul 2021 20:28:55 +0000 (23:28 +0300)
commit26c3d48041a9b5f9290653226704942836d8bb35
treefb1d45a053bd9fcf03b2bad3fc4d91d2a6127515
parent32d57b64b2d5a7effcbddd56de2fc08e2117d60d
bgpd: fix missing list add in dampening

One more crash in dampening code...

When bgp_damp_withdraw is called, if there's already a BDI structure,
bgp_damp_info_claim is called to re-assign the bdi->config in case it
was changed. The problem is that bgp_damp_info_claim actually removes
the BDI from the reuse list of the old config and never adds it to the
reuse list of the new config. We must do this to prevent the crash
because all the code assumes that BDI is always in some list.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
bgpd/bgp_damp.c