0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2025-03-14 02:17:04 +00:00

Fixed use-after-free of old protocol name pointer copied into rte_owner structure

This commit is contained in:
Maria Matejka 2023-03-08 13:47:42 +01:00
parent 90de93ca03
commit 88fc87afe6

View File

@ -1390,7 +1390,7 @@ proto_reconfigure(struct proto *p, struct proto_config *oc, struct proto_config
(nc->vrf != oc->vrf))
return 0;
p->name = nc->name;
p->sources.name = p->name = nc->name;
p->debug = nc->debug;
p->mrtdump = nc->mrtdump;
reconfigure_type = type;