diff options
author | Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> | 2013-09-13 18:25:57 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-12-30 23:50:45 +0100 |
commit | 67da6075a4e7ced0e8cc452d73ce8ab06cbf8cd9 (patch) | |
tree | 97f2e48d73363fa5503482c786708893c0fe94e7 | |
parent | e83e35e236a33dfdf3e401adb7d7e18362cf1961 (diff) |
nft: skip unset tables on table configuration emulation
The ARP family has less tables, so skip iteration once we find
a null one.
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | iptables/nft.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/iptables/nft.c b/iptables/nft.c index 143293b5..49d345d2 100644 --- a/iptables/nft.c +++ b/iptables/nft.c @@ -295,6 +295,9 @@ static struct builtin_table bool found = false; for (i=0; i<TABLES_MAX; i++) { + if (h->tables[i].name == NULL) + break; + if (strcmp(h->tables[i].name, table) != 0) continue; |