]> git.puffer.fish Git - mirror/frr.git/commit
pimd: fix order of operations for evaluating join 15975/head
authorDavid Lamparter <equinox@opensourcerouting.org>
Mon, 12 Dec 2022 16:50:59 +0000 (17:50 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Wed, 8 May 2024 19:21:30 +0000 (21:21 +0200)
commitfdb1a6fed5a8e42447b5b9633ad9df0f3042d0a9
tree1d1892a91b536962e7d5848f2cac25c2a454d29a
parentdce38da8061a7ac62c690dbb8a89cae7f9a758d6
pimd: fix order of operations for evaluating join

join_desired looks at whether up->channel_oil is empty.  up->channel_oil
is updated from pim_forward_stop(), calling pim_channel_del_oif().  But
that was being called *after* updating join_desired, so join_desired saw
a non-empty OIL.  Pull up the pim_forward_stop() call to before updating
join_desired.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
pimd/pim_ifchannel.c