]> git.puffer.fish Git - mirror/frr.git/commit
pimd: Fix pim_channel_oil_empty tests
authorDonald Sharp <sharpd@nvidia.com>
Wed, 8 Jun 2022 20:51:48 +0000 (16:51 -0400)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Thu, 9 Jun 2022 17:16:19 +0000 (17:16 +0000)
commitc7130d3e5da379c7bf8da45e8e01b4f596d819e3
treef569f0d0bacf754bf412398e501813cac9e0bd84
parent775c674363cb1420a976aad1f2ef3e7645949611
pimd: Fix pim_channel_oil_empty tests

The pim_channel_oil_empty() function was setting
the pimreg if it ever existed for NULL comparison
but of course the pimreg device is never pulled back
out again when it was needed to be when the pimreg
is not present.

Commit: a5fa982256b23d53d5b833f75224fb7f96054b9b
broke this.

Fixes: #11368
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
(cherry picked from commit 30b82c7af79fc167c39c1063c4e269c29e108fe4)
pimd/pim_oil.c