]> git.proxmox.com Git - mirror_frr.git/commit - pimd/pim_static.c
pimd: Prevent crash from using pim static mroutes
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 25 Jan 2019 16:57:09 +0000 (11:57 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 25 Jan 2019 17:07:02 +0000 (12:07 -0500)
commit04b6c83d56688355d7998ae24d101d8ccab4e98f
treecd7498e0fb03e1785f47f35d5ecdeb9e41f4cb6b
parent761d8b29dd300936ec84af371b32f4cc1040f822
pimd: Prevent crash from using pim static mroutes

If you have an interface being added to a static mroute
and that interface has been configured w/ pim but does
not have a valid ip address yet, we do not create a
VIF for that device yet.  As such when we attempt
to assign the vif array in the pim static data structure
we attempt to write into -1 of that array.

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