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

Commit e55f1bc5 authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller
Browse files

[NETFILTER]: Check policy length in policy match strict mode

parent ee4bb818
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ match_policy_out(const struct sk_buff *skb, const struct ipt_policy_info *info)
			return 0;
	}

	return strict ? 1 : 0;
	return strict ? i == info->len : 0;
}

static int match(const struct sk_buff *skb,
+1 −1
Original line number Diff line number Diff line
@@ -91,7 +91,7 @@ match_policy_out(const struct sk_buff *skb, const struct ip6t_policy_info *info)
			return 0;
	}

	return strict ? 1 : 0;
	return strict ? i == info->len : 0;
}

static int match(const struct sk_buff *skb,