Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d232b8dd authored by Dave Jones's avatar Dave Jones Committed by Pablo Neira Ayuso
Browse files

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: default avatarDave Jones <davej@redhat.com>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 88ed01d1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
+2 −1
Original line number Diff line number Diff line
@@ -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;