]> git.proxmox.com Git - mirror_frr.git/commit - pimd/pim_instance.c
pimd: Fix several address sanitizer issues
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 24 Sep 2018 19:12:36 +0000 (15:12 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 24 Sep 2018 19:12:36 +0000 (15:12 -0400)
commit1d48383802af98683d6d92e3d7c143b830340673
tree4a088a924066fcd110ef108c62d8178e63960064
parenta1b32de24ed520a53499f6e81d6ee8eaac548bd1
pimd: Fix several address sanitizer issues

This commit fixes two issues during pim shutdown.

1) The rp_info structure was being freed before the
outgoing notifications that depended on it's information
was sent out as part of shutdown.

2) The pim->upstream_list shutdown involved iterating
over the list via ALL_LIST_ELEMENTS.  This typically
is enough but pim will auto delete child nodes as well
as itself when it goes away and they depend on it.  As such
the node and nnode could possibly already have been freed.
So change the way we look at all the data in the upstream_list

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/pim_instance.c
pimd/pim_upstream.c