0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-09-16 18:35:19 +00:00

Config undo queuing bug fixed

This commit is contained in:
Maria Matejka 2024-06-27 09:48:38 +02:00
parent 45fb9742f0
commit edffd82057

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);