diff options
-rw-r--r-- | src/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c index d64f944..4cedb9e 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -75,7 +75,7 @@ int nft_buf_close(struct nft_buf *b, int type, const char *tag) { switch (type) { case NFT_OUTPUT_XML: - return nft_buf_put(b, "</%s>"); + return nft_buf_put(b, "</%s>", tag); case NFT_OUTPUT_JSON: /* Remove trailing comma in json */ if (b->size > 0 && b->buf[b->size - 1] == ',') { |