diff options
| author | Igor Ryzhov <idryzhov@gmail.com> | 2024-08-08 01:17:11 +0300 | 
|---|---|---|
| committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-08-08 12:23:42 +0000 | 
| commit | 545d6d1d422b8996a69e1e5a5faea8f934afbb59 (patch) | |
| tree | 0a5ddc42c64e80890c5e2cee5656487b9236d2af | |
| parent | fea4ed5043b4a523921f970a39a565d2c1ca381f (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>
(cherry picked from commit 2b12d62e38bf41648b2703b5a5c48e47eb01edc7)
| -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;  }  | 
