summaryrefslogtreecommitdiffstats
path: root/src/expr/nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/expr/nat.c')
-rw-r--r--src/expr/nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr/nat.c b/src/expr/nat.c
index 4b7ec27..654d4d7 100644
--- a/src/expr/nat.c
+++ b/src/expr/nat.c
@@ -262,7 +262,7 @@ nft_rule_expr_nat_snprintf_json(char *buf, size_t size,
if (nat->type == NFT_NAT_SNAT)
ret = snprintf(buf, len, "\"nat_type\" : \"snat\", ");
else if (nat->type == NFT_NAT_DNAT)
- ret = snprintf(buf, len, "\nat_type\" : \"dnat\", ");
+ ret = snprintf(buf, len, "\"nat_type\" : \"dnat\", ");
SNPRINTF_BUFFER_SIZE(ret, size, len, offset);