0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Config undo queuing bug fixed

This commit is contained in:
Maria Matejka 2024-06-27 09:48:38 +02:00
parent efc64ccd1e
commit 24dfee88a2

View File

@ -358,8 +358,16 @@ config_done(void)
if (future_cftype)
{
int type = future_cftype;
struct config *fc = OBSREF_GET(future_config);
CONFIG_REF_LOCAL(conf, OBSREF_GET(future_config));
if (type == RECONFIG_UNDO)
{
ASSERT_DIE(!fc);
ASSERT_DIE(old_config);
fc = old_config;
}
CONFIG_REF_LOCAL(conf, fc);
future_cftype = RECONFIG_NONE;
OBSREF_CLEAR(future_config);