From b8fb7fe14738f46e959026fc170f9a6dcf6b528d Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Mon, 22 Jan 2024 22:31:21 +0200 Subject: [PATCH] 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) --- bgpd/bgp_routemap_nb_config.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bgpd/bgp_routemap_nb_config.c b/bgpd/bgp_routemap_nb_config.c index 370295b6c31e..e6a2d822235f 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); }