Skip to contentSkip to conversation

statement: connlimit: remove extra whitespace in print function

PATCH New Pablo Neira Ayuso 1 participant 1 message Jun 2, 2021 netfilter

lore
Share & tools
lore

Pablo Neira Ayuso

author maintainer
#0 lore raw

PATCH 1/1 statement: connlimit: remove extra whitespace in print function

Instead of:

ct count 2 accept

           ^^

simply print:

ct count 2 accept

---
 src/statement.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/statement.c +1 -1
index f7f1c0c4d553..7537c07f495c 100644
@@ -201,7 +201,7 @@ struct stmt *meter_stmt_alloc(const struct location *loc)
 
 static void connlimit_stmt_print(const struct stmt *stmt, struct output_ctx *octx)
 {
-	nft_print(octx, "ct count %s%u ",
+	nft_print(octx, "ct count %s%u",
 		  stmt->connlimit.flags ? "over " : "", stmt->connlimit.count);
 }
 
Signature · 1 line
2.20.1