]> 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)
committerOndrej Zajicek <santiago@crfreenet.org>
Sun, 19 Feb 2023 03:08:31 +0000 (04:08 +0100)
commiteefb29679957fed3724e6d5db2ddf112e28f646f
treeea58d6d1dc8548a09d6b18c200bf8a1f854d82ba
parentee919658948772105d0bd3b4535ba28883484f2c
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