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

Commit 9cc08af3 authored by Werner Almesberger's avatar Werner Almesberger Committed by David S. Miller
Browse files

icmpv6_filter: fix "_hdr" incorrectly being a pointer



"_hdr" should hold the ICMPv6 header while "hdr" is the pointer to it.
This worked by accident.

Signed-off-by: default avatarWerner Almesberger <werner@almesberger.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c483e026
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -108,7 +108,7 @@ found:
 */
static int icmpv6_filter(const struct sock *sk, const struct sk_buff *skb)
{
	struct icmp6hdr *_hdr;
	struct icmp6hdr _hdr;
	const struct icmp6hdr *hdr;

	hdr = skb_header_pointer(skb, skb_transport_offset(skb),