summaryrefslogtreecommitdiffstats
path: root/net/bridge
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2010-04-07 21:20:47 -0700
committerDavid S. Miller <davem@davemloft.net>2010-04-07 21:20:47 -0700
commitfd218cf9557b9bf7061365a8fe7020a56d3f767c (patch)
treef96f035cb73060da366a9fdfdb10915cd7ce7089 /net/bridge
parent94824f3dbe0d3f62470603bbb18efb5510aaf07c (diff)
downloadop-kernel-dev-fd218cf9557b9bf7061365a8fe7020a56d3f767c.zip
op-kernel-dev-fd218cf9557b9bf7061365a8fe7020a56d3f767c.tar.gz
bridge: Fix IGMP3 report parsing
The IGMP3 report parsing is looking at the wrong address for group records. This patch fixes it. Reported-by: Banyeer <banyeer@yahoo.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge')
-rw-r--r--net/bridge/br_multicast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c
index 6980625..f29ada8 100644
--- a/net/bridge/br_multicast.c
+++ b/net/bridge/br_multicast.c
@@ -723,7 +723,7 @@ static int br_multicast_igmp3_report(struct net_bridge *br,
if (!pskb_may_pull(skb, len))
return -EINVAL;
- grec = (void *)(skb->data + len);
+ grec = (void *)(skb->data + len - sizeof(*grec));
group = grec->grec_mca;
type = grec->grec_type;
OpenPOWER on IntegriCloud