]> 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)
committerIgor Ryzhov <iryzhov@nfware.com>
Mon, 22 Jan 2024 20:31:21 +0000 (22:31 +0200)
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>
bgpd/bgp_routemap_nb_config.c

index 5df22b171d72a9d98c663e933ca84900d55c3bef..d6fcb6b8dcecec84a8fdfe1f8ac92301d727bbc7 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);
        }