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: docker/9.1.1~54^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F15198%2Fhead;p=mirror%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 (cherry picked from commit 7006880bc2dcb0f85017638cc760d1d3343e4bb9) --- diff --git a/bgpd/bgp_routemap_nb_config.c b/bgpd/bgp_routemap_nb_config.c index 370295b6c3..e6a2d82223 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); }