]> git.proxmox.com Git - mirror_frr.git/commitdiff
pimd: Ensure 'struct nexthop' has been zeroed
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 27 Oct 2016 22:13:19 +0000 (18:13 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Dec 2016 01:26:12 +0000 (20:26 -0500)
When calling nexthop_lookup, the code assumes
that the nexthop passed in has been 0'ed out.

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

index 8ece65d31720cc7bf6496b69bba349bdb6e0bc36..976fe74f08c9b1c724401526ad35c685a4773287 100644 (file)
@@ -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);