netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [libnftnl PATCH] buffer: fix a bug in nft_buf_close passing the tag to close the xml elements.
@ 2015-02-09 20:09 Alvaro Neira Ayuso
  2015-02-09 20:09 ` [libnftnl PATCH 1/4 v8] src: add command tag in json/xml export support Alvaro Neira Ayuso
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Alvaro Neira Ayuso @ 2015-02-09 20:09 UTC (permalink / raw)
  To: netfilter-devel

Signed-off-by: Alvaro Neira Ayuso <alvaroneay@gmail.com>
---
 src/buffer.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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] == ',') {
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-02-09 20:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-09 20:09 [libnftnl PATCH] buffer: fix a bug in nft_buf_close passing the tag to close the xml elements Alvaro Neira Ayuso
2015-02-09 20:09 ` [libnftnl PATCH 1/4 v8] src: add command tag in json/xml export support Alvaro Neira Ayuso
2015-02-09 20:09 ` [libnftnl PATCH 2/4 v8] src: add support to import json/xml with the new command syntax Alvaro Neira Ayuso
2015-02-09 20:09 ` [libnftnl PATCH 3/4 v8] example: Parse and create netlink message using the new parsing functions Alvaro Neira Ayuso
2015-02-09 20:09 ` [libnftnl PATCH 4/4 v8] test: update json/xml tests to the new syntax Alvaro Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).