]> git.ipfire.org Git - thirdparty/bird.git/commit
Conf: Fix too early free of old configuration
authorOndrej Zajicek <santiago@crfreenet.org>
Sun, 19 Feb 2023 02:59:10 +0000 (03:59 +0100)
committerJakub Ružička <jakub.ruzicka@nic.cz>
Tue, 30 May 2023 11:31:35 +0000 (13:31 +0200)
commit0443fbbe17deb127b0f446f7b8eeebcff5090763
treebe95705e77daad57aade4166eae6a118e599417e
parent132b3493bd7757c4b6ea2ed6a3ffe6e93d96862e
Conf: Fix too early free of old configuration

The change 371eb49043d225d2bab8149187b813a14b4b86d2 introduced early free
of old_config. Unfortunately, it did not properly check whether it is not
still in use (blocked by obstacle during reconfiguration). Fix that.

It also means that we still could have a short peak when three configs
are in use (when a new reconfig is requeste while the previous one is
still active).
conf/conf.c