]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
ct: Fix output_fp bypass in ct_print()
authorPhil Sutter <phil@nwl.cc>
Tue, 10 Apr 2018 17:00:19 +0000 (19:00 +0200)
committerFlorian Westphal <fw@strlen.de>
Tue, 10 Apr 2018 17:08:07 +0000 (19:08 +0200)
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
src/ct.c

index edfe5586ebe65a56090440a2d8ef15d099c6d2c1..daa5359631147c8b83d687fbd2e0ce3b9826ed52 100644 (file)
--- a/src/ct.c
+++ b/src/ct.c
@@ -293,7 +293,7 @@ static void ct_print(enum nft_ct_keys key, int8_t dir, uint8_t nfproto,
        case NFT_CT_DST:
                desc = proto_find_upper(&proto_inet, nfproto);
                if (desc)
-                       printf("%s ", desc->name);
+                       nft_print(octx, "%s ", desc->name);
                break;
        default:
                break;