diff options
author | Werner Almesberger <werner@almesberger.net> | 2013-08-02 10:51:19 -0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-02 15:15:50 -0700 |
commit | 9cc08af3a1d9d1687cb2ad6063ac1552ec2f695a (patch) | |
tree | 81f28f1e87e9a1eb68af1bf46517da4656c652f3 /net/ipv6 | |
parent | c483e02614551e44ced3fe6eedda8e36d3277ccc (diff) | |
download | op-kernel-dev-9cc08af3a1d9d1687cb2ad6063ac1552ec2f695a.zip op-kernel-dev-9cc08af3a1d9d1687cb2ad6063ac1552ec2f695a.tar.gz |
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: Werner Almesberger <werner@almesberger.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/raw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c index c45f7a5..164fb5f 100644 --- a/net/ipv6/raw.c +++ b/net/ipv6/raw.c @@ -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), |