[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netfilter-devel
Subject:    Re: [libnftnl PATCH 4/4 v2] test: update json/xml tests to the new syntax
From:       Pablo Neira Ayuso <pablo () netfilter ! org>
Date:       2015-01-30 18:38:56
Message-ID: 20150130183856.GC22598 () salvia
[Download RAW message or body]

On Fri, Jan 30, 2015 at 03:35:25PM +0100, Alvaro Neira Ayuso wrote:
> diff --git a/examples/nft-ruleset-parse-file.c b/examples/nft-ruleset-parse-file.c
> index a78e454..e6a78b4 100644
> --- a/examples/nft-ruleset-parse-file.c
> +++ b/examples/nft-ruleset-parse-file.c
> @@ -250,7 +250,8 @@ static int nft_ruleset_table(const struct nft_parse_ctx *ctx, uint32_t ctx_cmd,
>  					type,
>  					seq++);
>  
> -	nft_table_nlmsg_build_payload(nlh, table);
> +	if (table != NULL)
> +		nft_table_nlmsg_build_payload(nlh, table);
>  	mnl_nlmsg_batch_next(batch);
>  	nft_table_free(table);
>  	return 0;

This chunk doesn't belong here.
--
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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic