]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
rule: remove semicolon in flowtable offload
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 25 Mar 2021 12:06:02 +0000 (13:06 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 25 Mar 2021 12:06:45 +0000 (13:06 +0100)
opts->stmt_separator already prints the semicolon when needed.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/rule.c

index f7f905095cbec1b6a2163a0420e34953b37c5cee..96931800893332bf1b6866fcc49aa9982f28a49b 100644 (file)
@@ -2224,7 +2224,7 @@ static void flowtable_print_declaration(const struct flowtable *flowtable,
        }
 
        if (flowtable->flags & NFT_FLOWTABLE_HW_OFFLOAD)
-               nft_print(octx, "%s%sflags offload;%s", opts->tab, opts->tab,
+               nft_print(octx, "%s%sflags offload%s", opts->tab, opts->tab,
                          opts->stmt_separator);
 
        if (flowtable->flags & NFT_FLOWTABLE_COUNTER)