netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [nft PATCH] netlink: fix chain attribute parsing
@ 2014-02-26 17:46 Arturo Borrero Gonzalez
  2014-02-27  9:18 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 2+ messages in thread
From: Arturo Borrero Gonzalez @ 2014-02-26 17:46 UTC (permalink / raw)
  To: netfilter-devel; +Cc: pablo

The handle's table was being set to the chain name instead of the
chain table attribute.

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
---
 src/netlink.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/netlink.c b/src/netlink.c
index 2871888..b036dce 100644
--- a/src/netlink.c
+++ b/src/netlink.c
@@ -514,7 +514,7 @@ static int list_chain_cb(struct nft_chain *nlc, void *arg)
 	chain->handle.family =
 		nft_chain_attr_get_u32(nlc, NFT_CHAIN_ATTR_FAMILY);
 	chain->handle.table  =
-		xstrdup(nft_chain_attr_get_str(nlc, NFT_CHAIN_ATTR_NAME));
+		xstrdup(nft_chain_attr_get_str(nlc, NFT_CHAIN_ATTR_TABLE));
 	chain->handle.handle =
 		nft_chain_attr_get_u64(nlc, NFT_CHAIN_ATTR_HANDLE);
 


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

* Re: [nft PATCH] netlink: fix chain attribute parsing
  2014-02-26 17:46 [nft PATCH] netlink: fix chain attribute parsing Arturo Borrero Gonzalez
@ 2014-02-27  9:18 ` Pablo Neira Ayuso
  0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2014-02-27  9:18 UTC (permalink / raw)
  To: Arturo Borrero Gonzalez; +Cc: netfilter-devel

On Wed, Feb 26, 2014 at 06:46:59PM +0100, Arturo Borrero Gonzalez wrote:
> The handle's table was being set to the chain name instead of the
> chain table attribute.

Applied, thanks Arturo.

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

end of thread, other threads:[~2014-02-27  9:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-26 17:46 [nft PATCH] netlink: fix chain attribute parsing Arturo Borrero Gonzalez
2014-02-27  9:18 ` Pablo 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).