ip6_mc_input-copy_dest_addr.patch

Patch to copy destination address in ipv6_chk_mcast_addr before calling helper functions. - Robert Bradley, 04/11/2012 03:19 pm

Download (742 Bytes)

 
b/net/ipv6/ip6_input.c
251 251
int ip6_mc_input(struct sk_buff *skb)
252 252
{
253 253
       const struct ipv6hdr *hdr;
254
       struct in6_addr daddr;
254 255
       int deliver;
255 256

  
256 257
       IP6_UPD_PO_STATS_BH(dev_net(skb_dst(skb)->dev),
......
258 259
                        skb->len);
259 260

  
260 261
       hdr = ipv6_hdr(skb);
261
       deliver = ipv6_chk_mcast_addr(skb->dev, &hdr->daddr, NULL);
262
       memcpy(&daddr, &hdr->daddr, sizeof(struct in6_addr));
263
       deliver = ipv6_chk_mcast_addr(skb->dev, &daddr, NULL);
262 264

  
263 265
#ifdef CONFIG_IPV6_MROUTE
264 266
       /*