]> git.proxmox.com Git - mirror_frr.git/commit
pimd: Avoid reading freed memory.
authorMobashshera Rasool <mrasool@vmware.com>
Fri, 24 Jun 2022 06:47:09 +0000 (23:47 -0700)
committerMobashshera Rasool <mrasool@vmware.com>
Fri, 24 Jun 2022 10:50:45 +0000 (03:50 -0700)
commit30247bd637c35ab04f4993e67a36961e4204f12c
treef0539c102582974b01e58eea4e0a60672993b775
parent8a8fd10a47c944f469f21e0aeb636f843685b891
pimd: Avoid reading freed memory.

If the upstream is freed in pim_upstream_del, then trying to
call pim_upstream_timers_stop will lead to accessing freed memory.

Fix:
Stop the timer only if upstream is not deleted.

Co-authored-by: Sarita Patra <saritap@vmware.com>
Co-authored-by: Mobashshera Rasool <mrasool@vmware.com>
Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
pimd/pim_upstream.c