netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3 libnftnl] chain: Fix bug. Check correct attribute
@ 2016-06-16 10:20 Carlos Falgueras García
  2016-06-16 10:20 ` [PATCH 2/3 libnftnl] fix some error checking in parser functions Carlos Falgueras García
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Carlos Falgueras García @ 2016-06-16 10:20 UTC (permalink / raw)
  To: netfilter-devel; +Cc: pablo

Signed-off-by: Carlos Falgueras García <carlosfg@riseup.net>
---
 src/chain.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/chain.c b/src/chain.c
index f55dfa1..bfffbe0 100644
--- a/src/chain.c
+++ b/src/chain.c
@@ -219,7 +219,7 @@ int nftnl_chain_set_data(struct nftnl_chain *c, uint16_t attr,
 			xfree(c->dev);
 
 		c->dev = strdup(data);
-		if (!c->type)
+		if (!c->dev)
 			return -1;
 		break;
 	}
-- 
2.8.3

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2016-06-16 12:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-16 10:20 [PATCH 1/3 libnftnl] chain: Fix bug. Check correct attribute Carlos Falgueras García
2016-06-16 10:20 ` [PATCH 2/3 libnftnl] fix some error checking in parser functions Carlos Falgueras García
2016-06-16 12:53   ` Pablo Neira Ayuso
2016-06-16 10:20 ` [PATCH 3/3 libnftnl] Consolidate setters Carlos Falgueras García
2016-06-16 12:51 ` [PATCH 1/3 libnftnl] chain: Fix bug. Check correct attribute 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).