summaryrefslogtreecommitdiffstats
path: root/net/ipv6/raw.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2013-08-02 15:51:19 +0200
committerDavid S. Miller <davem@davemloft.net>2013-08-03 00:15:50 +0200
commit9cc08af3a1d9d1687cb2ad6063ac1552ec2f695a (patch)
tree81f28f1e87e9a1eb68af1bf46517da4656c652f3 /net/ipv6/raw.c
parentaf_packet: simplify VLAN frame check in packet_snd (diff)
downloadlinux-9cc08af3a1d9d1687cb2ad6063ac1552ec2f695a.tar.xz
linux-9cc08af3a1d9d1687cb2ad6063ac1552ec2f695a.zip
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/raw.c')
-rw-r--r--net/ipv6/raw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c
index c45f7a5c36e9..164fb5f58641 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),