Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8eabf95c authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

bridge: add a missing ntohs()



grec_nsrcs is in network order, we should convert to host horder in
br_multicast_igmp3_report()

Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Acked-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e46754f8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -727,7 +727,7 @@ static int br_multicast_igmp3_report(struct net_bridge *br,
		group = grec->grec_mca;
		type = grec->grec_type;

		len += grec->grec_nsrcs * 4;
		len += ntohs(grec->grec_nsrcs) * 4;
		if (!pskb_may_pull(skb, len))
			return -EINVAL;