diff options
-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; |