mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-29 15:07:51 +00:00
lib: fix crash on distribute-list delete
The destroy callback must be executed only once on APPLY stage. Fixes #16528 Signed-off-by: Igor Ryzhov <idryzhov@gmail.com>
This commit is contained in:
parent
d36ff6df2b
commit
2b12d62e38
@ -458,6 +458,8 @@ int group_distribute_list_create_helper(
|
|||||||
|
|
||||||
int group_distribute_list_destroy(struct nb_cb_destroy_args *args)
|
int group_distribute_list_destroy(struct nb_cb_destroy_args *args)
|
||||||
{
|
{
|
||||||
|
if (args->event != NB_EV_APPLY)
|
||||||
|
return NB_OK;
|
||||||
nb_running_unset_entry(args->dnode);
|
nb_running_unset_entry(args->dnode);
|
||||||
return NB_OK;
|
return NB_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user