]> git.proxmox.com Git - mirror_frr.git/commit - pimd/pim_upstream.c
pimd: Clean back pointer upon deletion
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 2 Aug 2017 16:10:50 +0000 (12:10 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 2 Aug 2017 16:14:11 +0000 (12:14 -0400)
commit13221cf2b4016b18b24e68d7972ed0dbfdc769bd
tree4db74fcea279e982d0766b4c8c33c66d149d45f4
parent0ecfe5bf38cd803aef891fb9bedb5633949b39bc
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>
pimd/pim_upstream.c