]> git.puffer.fish Git - matthieu/frr.git/commit
pimd: moving the route_unlock_node outside debug function
authorsaravanank <saravanank@vmware.com>
Mon, 16 Mar 2020 02:36:33 +0000 (19:36 -0700)
committersaravanank <saravanank@vmware.com>
Mon, 16 Mar 2020 02:36:33 +0000 (19:36 -0700)
commit260c92c867805f575fafa678fbb7c9f5c11a6ba6
tree08ac7a5aa530744fdccf86f360764ea6e5461b77
parent7f2ccbe562cae49fb8bf1770a0ec79b701ee41af
pimd: moving the route_unlock_node outside debug function

Problem: Route node is not de referenced after search when pim debug events are
not enabled when pim_rp_find_match_group is called. So this memory will not get
released when route node is deleted after hitting this path.

RCA: Dereferencing is done inside debug condition.

Fix: Moving outside debug condition

Signed-off-by: Saravanan K <saravanank@vmware.com>
pimd/pim_rp.c