summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2017-11-27 23:59:45 +0100
committerFlorian Westphal <fw@strlen.de>2017-11-27 23:59:45 +0100
commit9f39f8e6729457b88fd42156984a78c98fb84651 (patch)
tree779604b93fa746e67d7bf1423cfd3afe3c6ed940
parent39d453a15dd3e1a349edc5618861aad63991419a (diff)
ct: don't print newline if label bit cannot be mapped
Signed-off-by: Florian Westphal <fw@strlen.de>
-rw-r--r--src/ct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ct.c b/src/ct.c
index 58b873e7..4633127d 100644
--- a/src/ct.c
+++ b/src/ct.c
@@ -147,7 +147,7 @@ static void ct_label_type_print(const struct expr *expr,
return;
}
/* can happen when connlabel.conf is altered after rules were added */
- nft_print(octx, "%ld\n", (long)mpz_scan1(expr->value, 0));
+ nft_print(octx, "%ld", (long)mpz_scan1(expr->value, 0));
}
static struct error_record *ct_label_type_parse(const struct expr *sym,