git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[NETLINK]: Introduce nlmsg_hdr() helper
[safe/jmp/linux-2.6]
/
net
/
ipv4
/
netfilter
/
ip_queue.c
diff --git
a/net/ipv4/netfilter/ip_queue.c
b/net/ipv4/netfilter/ip_queue.c
index
15e0d20
..
17f7c98
100644
(file)
--- a/
net/ipv4/netfilter/ip_queue.c
+++ b/
net/ipv4/netfilter/ip_queue.c
@@
-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;