mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 00:06:09 +00:00
pimd: Clean back pointer upon deletion
The channel_oil has a back pointer(up) to the upstream data structure. If we are planning on keeping the channel oil (due to ref count issues) longer than keeping the upstream, when we delete the upstream we were not clearing the back pointer to up. This would result in a situation where if that memory has started to be used again it will cause a crash and other fun things. Ticket: CM-17092 Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
0ecfe5bf38
commit
13221cf2b4
@ -153,6 +153,7 @@ static void upstream_channel_oil_detach(struct pim_upstream *up)
|
||||
/* Detaching from channel_oil, channel_oil may exist post del,
|
||||
but upstream would not keep reference of it
|
||||
*/
|
||||
up->channel_oil->up = NULL;
|
||||
pim_channel_oil_del(up->channel_oil);
|
||||
up->channel_oil = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user