diff options
author | Phil Sutter <phil@nwl.cc> | 2019-10-17 00:20:59 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2019-10-17 12:49:10 +0200 |
commit | fb050d7799abfd6bda6c21ad78ed5d9d2c92132f (patch) | |
tree | 22d1e2d67148119bef9bd952e92a33b22a19eda2 /src | |
parent | 0223253ebf02d7ef0710cbe9c68647e738bb8d09 (diff) |
rule: Fix for single line ct timeout printing
Commit 43ae7a48ae3de ("rule: do not print semicolon in ct timeout")
removed an extra semicolon at end of line, but thereby broke single line
output. The correct fix is to use opts->stmt_separator which holds
either newline or semicolon chars depending on output mode.
Fixes: 43ae7a48ae3de ("rule: do not print semicolon in ct timeout")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/rule.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1869,7 +1869,7 @@ static void obj_print_data(const struct obj *obj, nft_print(octx, "%s", opts->nl); nft_print(octx, "%s%sprotocol ", opts->tab, opts->tab); print_proto_name_proto(obj->ct_timeout.l4proto, octx); - nft_print(octx, "%s", opts->nl); + nft_print(octx, "%s", opts->stmt_separator); nft_print(octx, "%s%sl3proto %s%s", opts->tab, opts->tab, family2str(obj->ct_timeout.l3proto), |