mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-20 16:46:23 +08:00
netfilter: use unsigned variables for packet lengths in ip[6]_queue.
Netlink message lengths can't be negative, so use unsigned variables. Signed-off-by: Dave Jones <davej@redhat.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
88ed01d17b
commit
d232b8dded
@ -402,7 +402,8 @@ ipq_dev_drop(int ifindex)
|
||||
static inline void
|
||||
__ipq_rcv_skb(struct sk_buff *skb)
|
||||
{
|
||||
int status, type, pid, flags, nlmsglen, skblen;
|
||||
int status, type, pid, flags;
|
||||
unsigned int nlmsglen, skblen;
|
||||
struct nlmsghdr *nlh;
|
||||
|
||||
skblen = skb->len;
|
||||
|
@ -403,7 +403,8 @@ ipq_dev_drop(int ifindex)
|
||||
static inline void
|
||||
__ipq_rcv_skb(struct sk_buff *skb)
|
||||
{
|
||||
int status, type, pid, flags, nlmsglen, skblen;
|
||||
int status, type, pid, flags;
|
||||
unsigned int nlmsglen, skblen;
|
||||
struct nlmsghdr *nlh;
|
||||
|
||||
skblen = skb->len;
|
||||
|
Loading…
Reference in New Issue
Block a user