summaryrefslogtreecommitdiff
path: root/proto/bgp
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2023-11-25 17:49:03 +0100
committerMikael Magnusson <mikma@users.sourceforge.net>2023-11-25 17:49:03 +0100
commit772b80cc1392a52c9275c2290cc8b0c08cd9fdfa (patch)
tree266ce394cbd51361694e4829dfacc5e0f7e5a396 /proto/bgp
parent82bc3c5a44dce29ac4e45f1fb638589273766fc5 (diff)
parent51f2e7afaf069508685281e8c1b8bb1ceda79d8f (diff)
Merge commit '51f2e7afaf069508685281e8c1b8bb1ceda79d8f' into wireguard-next-tmp7-1
Diffstat (limited to 'proto/bgp')
-rw-r--r--proto/bgp/bgp.c4
1 files changed, 2 insertions, 2 deletions
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;