]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Old config should not be freed early when reconfiguring in fast succession
authorMaria Matejka <mq@ucw.cz>
Mon, 10 Feb 2025 13:18:19 +0000 (14:18 +0100)
committerMaria Matejka <mq@ucw.cz>
Wed, 12 Feb 2025 11:40:04 +0000 (12:40 +0100)
conf/conf.c

index cfe484cbce204a0f33f911998e3501effa5611a3..73e0ae0505460ee0cf462e005143511fa41ec2a4 100644 (file)
@@ -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] = {{