netfilter: x_tables: check name length in find_match/target, too
authorFlorian Westphal <fw@strlen.de>
Wed, 25 Apr 2018 11:38:47 +0000 (13:38 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 26 Apr 2018 22:40:11 +0000 (00:40 +0200)
commitdceb48d86b4871984b8ce9ad5057fb2c01aa33de
tree6decfd755747a4cb7811d9fe1250ccca5eadc304
parent72d4d3e3980702809509586d36015b7c3c51fad4
netfilter: x_tables: check name length in find_match/target, too

ebtables uses find_match() rather than find_request_match in one case
(see bcf4934288402be3464110109a4dae3bd6fb3e93,
 "netfilter: ebtables: Fix extension lookup with identical name"), so
 extend the check on name length to those functions too.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/x_tables.c