Signed-off-by: Carlos Falgueras García <carlosfg@xxxxxxxxxx> --- 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@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html