diff options
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/netfilter/ip6_queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/netfilter/ip6_queue.c b/net/ipv6/netfilter/ip6_queue.c index 5cfce218c5e1..275e625e4977 100644 --- a/net/ipv6/netfilter/ip6_queue.c +++ b/net/ipv6/netfilter/ip6_queue.c | |||
@@ -487,7 +487,7 @@ ipq_rcv_skb(struct sk_buff *skb) | |||
487 | if (skblen < sizeof(*nlh)) | 487 | if (skblen < sizeof(*nlh)) |
488 | return; | 488 | return; |
489 | 489 | ||
490 | nlh = (struct nlmsghdr *)skb->data; | 490 | nlh = nlmsg_hdr(skb); |
491 | nlmsglen = nlh->nlmsg_len; | 491 | nlmsglen = nlh->nlmsg_len; |
492 | if (nlmsglen < sizeof(*nlh) || skblen < nlmsglen) | 492 | if (nlmsglen < sizeof(*nlh) || skblen < nlmsglen) |
493 | return; | 493 | return; |