From 51f2e7afaf069508685281e8c1b8bb1ceda79d8f Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Tue, 13 Jun 2023 10:51:03 +0200 Subject: Conf: Symbol manipulation gets its context explicitly --- proto/bgp/bgp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'proto/bgp/bgp.c') diff --git a/proto/bgp/bgp.c b/proto/bgp/bgp.c index 0a2e8f5a..f668b371 100644 --- a/proto/bgp/bgp.c +++ b/proto/bgp/bgp.c @@ -507,8 +507,8 @@ bgp_spawn(struct bgp_proto *pp, ip_addr remote_ip) /* This is hack, we would like to share config, but we need to copy it now */ new_config = config; cfg_mem = config->mem; - conf_this_scope = config->root_scope; - sym = cf_default_name(fmt, &(pp->dynamic_name_counter)); + config->current_scope = config->root_scope; + sym = cf_default_name(config, fmt, &(pp->dynamic_name_counter)); proto_clone_config(sym, pp->p.cf); new_config = NULL; cfg_mem = NULL; -- cgit v1.2.3