]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: fix route-map match probability deconfiguration callback
authorIgor Ryzhov <iryzhov@nfware.com>
Mon, 22 Jan 2024 20:31:21 +0000 (22:31 +0200)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Tue, 23 Jan 2024 06:50:21 +0000 (06:50 +0000)
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)

bgpd/bgp_routemap_nb_config.c

index 370295b6c31ea3683b25e98d79f07c75bc4a4a0f..e6a2d822235f8956df9a3bf82384c6ed35f2d959 100644 (file)
@@ -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);
        }