]> 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)
committerIgor Ryzhov <iryzhov@nfware.com>
Thu, 29 Jul 2021 11:44:20 +0000 (14:44 +0300)
commitcd58568b1889df753aa258ee61b6d949b1ce6fb9
treeab301da5dbc0f6a070c7968f4361dc20e4361979
parent9e3adc3f2c2dc3fb49cdf1be9ee0169b66aff9e3
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