]> asedeno.scripts.mit.edu Git - linux.git/commit
netfilter: nf_tables: fix chain filter in nf_tables_dump_rules()
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 19 Dec 2017 11:01:21 +0000 (12:01 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 20 Dec 2017 23:15:11 +0000 (00:15 +0100)
commit24c0df82ef7919e4d10cf2e4e65d368eb2e8ea21
treefa2e3a41f2c9c59bf759e70a78823ca34646c55d
parentb4681c2829e24943aadd1a7bb3a30d41d0a20050
netfilter: nf_tables: fix chain filter in nf_tables_dump_rules()

ctx->chain may be null now that we have very large object names,
so we cannot check for ctx->chain[0] here.

Fixes: b7263e071aba7 ("netfilter: nf_tables: Allow table names of up to 255 chars")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Acked-by: Phil Sutter <phil@nwl.cc>
net/netfilter/nf_tables_api.c