summaryrefslogtreecommitdiff
path: root/nest/proto.c
diff options
context:
space:
mode:
Diffstat (limited to 'nest/proto.c')
-rw-r--r--nest/proto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nest/proto.c b/nest/proto.c
index a5325705..bc7b7cc8 100644
--- a/nest/proto.c
+++ b/nest/proto.c
@@ -1269,8 +1269,8 @@ protos_commit(struct config *new, struct config *old, int force_reconfig, int ty
/* This is hack, we would like to share config, but we need to copy it now */
new_config = new;
cfg_mem = new->mem;
- conf_this_scope = new->root_scope;
- sym = cf_get_symbol(oc->name);
+ new->current_scope = new->root_scope;
+ sym = cf_get_symbol(new, oc->name);
proto_clone_config(sym, parsym->proto);
new_config = NULL;
cfg_mem = NULL;