From: Igor Ryzhov Date: Wed, 7 Aug 2024 22:17:11 +0000 (+0300) Subject: lib: fix crash on distribute-list delete X-Git-Tag: docker/10.1.1~26^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=6c5c46f9319cab606a2703279c5b212aea596cf4;p=matthieu%2Ffrr.git 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 (cherry picked from commit 2b12d62e38bf41648b2703b5a5c48e47eb01edc7) --- 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; }