From: Igor Ryzhov Date: Mon, 22 Jan 2024 20:31:21 +0000 (+0200) Subject: bgpd: fix route-map match probability deconfiguration callback X-Git-Tag: base_10.0~97^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=7006880bc2dcb0f85017638cc760d1d3343e4bb9;p=matthieu%2Ffrr.git bgpd: fix route-map match probability deconfiguration callback Add missing break. Currently, lib_route_map_entry_match_destroy is called on every commit stage, but it should run only on APPLY. Signed-off-by: Igor Ryzhov --- diff --git a/bgpd/bgp_routemap_nb_config.c b/bgpd/bgp_routemap_nb_config.c index 5df22b171d..d6fcb6b8dc 100644 --- a/bgpd/bgp_routemap_nb_config.c +++ b/bgpd/bgp_routemap_nb_config.c @@ -522,6 +522,7 @@ lib_route_map_entry_match_condition_rmap_match_condition_probability_destroy( case NB_EV_VALIDATE: case NB_EV_PREPARE: case NB_EV_ABORT: + break; case NB_EV_APPLY: return lib_route_map_entry_match_destroy(args); }