]> git.puffer.fish Git - mirror/frr.git/commit
pimd: add safety check to OIL add/del
authorDavid Lamparter <equinox@opensourcerouting.org>
Thu, 10 Mar 2022 10:22:48 +0000 (11:22 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Sat, 12 Mar 2022 21:47:08 +0000 (22:47 +0100)
commitd6890c49b2f689fd679cd845d0011eecb80c326a
treef892215e0abce04f4d08db86a92e08313c067db2
parente5764757235c24faa57ec286792c7c9f12c913cf
pimd: add safety check to OIL add/del

These will corrupt memory if mroute_vif_index is -1 (e.g. interface not
operating.)  That shouldn't happen, but it does while doing development
work, so trip an assert rather than corrupting memory.

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