summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--iptables/xtables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/xtables.c b/iptables/xtables.c
index 313b985b..d6afada9 100644
--- a/iptables/xtables.c
+++ b/iptables/xtables.c
@@ -1160,7 +1160,7 @@ void do_parse(struct nft_handle *h, int argc, char *argv[],
p->chain);
}
- if (p->chain && !nft_chain_exists(h, p->table, p->chain))
+ if (!nft_chain_exists(h, p->table, p->chain))
xtables_error(OTHER_PROBLEM,
"Chain '%s' does not exist", cs->jumpto);