summaryrefslogtreecommitdiff
path: root/bgpd
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2024-01-22 22:31:21 +0200
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-01-23 06:50:21 +0000
commitb8fb7fe14738f46e959026fc170f9a6dcf6b528d (patch)
treefbb7de9257360e87fd4647637287a1ed80ac7b02 /bgpd
parent153a38db8d7f7d752a845be4bf026753ff2feecc (diff)
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 <iryzhov@nfware.com> (cherry picked from commit 7006880bc2dcb0f85017638cc760d1d3343e4bb9)
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/bgp_routemap_nb_config.c1
1 files changed, 1 insertions, 0 deletions
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);
}