From: Donald Sharp Date: Thu, 27 Oct 2016 22:13:19 +0000 (-0400) Subject: pimd: Ensure 'struct nexthop' has been zeroed X-Git-Tag: frr-3.0-branchpoint~64^2~10^2~161 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=f89022af5302c2d2710e502cf7620c8275d6b333;p=mirror%2Ffrr.git pimd: Ensure 'struct nexthop' has been zeroed When calling nexthop_lookup, the code assumes that the nexthop passed in has been 0'ed out. Signed-off-by: Donald Sharp --- diff --git a/pimd/pim_mroute.c b/pimd/pim_mroute.c index 8ece65d317..976fe74f08 100644 --- a/pimd/pim_mroute.c +++ b/pimd/pim_mroute.c @@ -345,6 +345,7 @@ pim_mroute_msg_wrvifwhole (int fd, struct interface *ifp, const char *buf) struct pim_rpf *rpf = RP (sg.grp); pim_ifp = rpf->source_nexthop.interface->info; + memset (&source, 0, sizeof (source)); //No if channel, but upstream we are at the RP. if (pim_nexthop_lookup (&source, up->upstream_register, 0) == 0) pim_register_stop_send(source.interface, &sg, pim_ifp->primary_address, up->upstream_register);