From 96b7e5af191d5c517b8d46dc575ec82ffec40127 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 02564b000410..06e9d25b8a77 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); }