Skip to content

Commit

Permalink
bgpd: fix route-map match probability deconfiguration callback
Browse files Browse the repository at this point in the history
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 <[email protected]>
(cherry picked from commit 7006880)
  • Loading branch information
idryzhov authored and mergify[bot] committed Jan 23, 2024
1 parent 153a38d commit b8fb7fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bgpd/bgp_routemap_nb_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit b8fb7fe

Please sign in to comment.