diff options
| author | Igor Ryzhov <idryzhov@gmail.com> | 2024-08-08 01:17:11 +0300 |
|---|---|---|
| committer | Igor Ryzhov <idryzhov@gmail.com> | 2024-08-08 01:17:11 +0300 |
| commit | 2b12d62e38bf41648b2703b5a5c48e47eb01edc7 (patch) | |
| tree | 1bd426fc81ce2b9f008715d8d74541169d923804 /lib/distribute.c | |
| parent | d36ff6df2be1f2dcc78a442fc7bc7badc25865e9 (diff) | |
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>
Diffstat (limited to 'lib/distribute.c')
| -rw-r--r-- | lib/distribute.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/distribute.c b/lib/distribute.c index ccd1f1379e..90a73c3635 100644 --- a/lib/distribute.c +++ b/lib/distribute.c @@ -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; } |
