mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-31 14:11:54 +00:00
Refactor fix - proto_reconfigure() update pointers
This commit is contained in:
parent
0dc82d4a1d
commit
3c8e00c688
@ -947,6 +947,10 @@ channel_reconfigure(struct channel *c, struct channel_config *cf)
|
||||
c->in_req.trace_routes = c->out_req.trace_routes = c->debug | c->proto->debug;
|
||||
c->rpki_reload = cf->rpki_reload;
|
||||
|
||||
/* update pointers from config to channel and vice versa */
|
||||
cf->channel = c;
|
||||
c->config = cf;
|
||||
|
||||
/* Execute channel-specific reconfigure hook */
|
||||
if (c->class->reconfigure && !c->class->reconfigure(c, cf, &import_changed, &export_changed))
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user