diff options
author | Florian Westphal <fw@strlen.de> | 2018-05-03 21:45:59 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-05-04 23:24:50 +0200 |
commit | 7af21782bb6fc3480909120c20a55164248a9608 (patch) | |
tree | 55d1f02d74df8f39125b449b3574c4745889ac65 /iptables/nft-ipv6.c | |
parent | e9aeecf5956462f3a1b6cb21ea70280845948325 (diff) |
xtables-compat: fall back to comment match in case name is too long
... or when using multiple --comment lines.
This is more of a 'cosmetic' fix to handle the test suite case.
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/nft-ipv6.c')
-rw-r--r-- | iptables/nft-ipv6.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/iptables/nft-ipv6.c b/iptables/nft-ipv6.c index af525422..33f77ebf 100644 --- a/iptables/nft-ipv6.c +++ b/iptables/nft-ipv6.c @@ -67,8 +67,9 @@ static int nft_ipv6_add(struct nftnl_rule *r, void *data) if (strcmp(matchp->match->name, "comment") == 0) { ret = add_comment(r, (char *)matchp->match->m->data); if (ret < 0) - return ret; + goto try_match; } else { +try_match: ret = add_match(r, matchp->match->m); if (ret < 0) return ret; |