Skip to content

Commit

Permalink
lib: fix crash on distribute-list delete
Browse files Browse the repository at this point in the history
The destroy callback must be executed only once on APPLY stage.

Fixes #16528

Signed-off-by: Igor Ryzhov <[email protected]>
  • Loading branch information
idryzhov committed Aug 7, 2024
1 parent d36ff6d commit 2b12d62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/distribute.c
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,8 @@ int group_distribute_list_create_helper(

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);
return NB_OK;
}
Expand Down

0 comments on commit 2b12d62

Please sign in to comment.