From: Maria Matejka Date: Mon, 10 Feb 2025 13:18:19 +0000 (+0100) Subject: Old config should not be freed early when reconfiguring in fast succession X-Git-Tag: v3.0.2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=745cd48c80885cf1232d71907e5d489e5d5ad8c3;p=thirdparty%2Fbird.git Old config should not be freed early when reconfiguring in fast succession --- diff --git a/conf/conf.c b/conf/conf.c index cfe484cbc..73e0ae050 100644 --- a/conf/conf.c +++ b/conf/conf.c @@ -225,8 +225,11 @@ config_free_old(void) tm_stop(config_timer); undo_available = 0; - config_free(old_config); - old_config = NULL; + if (!configuring) + { + config_free(old_config); + old_config = NULL; + } } struct global_runtime global_runtime_internal[2] = {{