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:
parent
efc64ccd1e
commit
24dfee88a2
10
conf/conf.c
10
conf/conf.c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user