[NETLINK]: Introduce nlmsg_hdr() helper
[safe/jmp/linux-2.6] / net / ipv4 / netfilter / ip_queue.c
index 15e0d20..17f7c98 100644 (file)
@@ -497,7 +497,7 @@ ipq_rcv_skb(struct sk_buff *skb)
        if (skblen < sizeof(*nlh))
                return;
 
-       nlh = (struct nlmsghdr *)skb->data;
+       nlh = nlmsg_hdr(skb);
        nlmsglen = nlh->nlmsg_len;
        if (nlmsglen < sizeof(*nlh) || skblen < nlmsglen)
                return;