From 67da6075a4e7ced0e8cc452d73ce8ab06cbf8cd9 Mon Sep 17 00:00:00 2001 From: Tomasz Bursztyka Date: Fri, 13 Sep 2013 18:25:57 +0200 Subject: 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 Signed-off-by: Pablo Neira Ayuso --- iptables/nft.c | 3 +++ 1 file changed, 3 insertions(+) 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; itables[i].name == NULL) + break; + if (strcmp(h->tables[i].name, table) != 0) continue; -- cgit v1.2.3