0
0
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:
Vojtech Vilimek 2022-07-20 16:54:23 +02:00
parent 0dc82d4a1d
commit 3c8e00c688

View File

@ -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;