mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-29 15:14:18 +08:00
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>
This commit is contained in:
parent
c483e02614
commit
9cc08af3a1
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user