Re: [PATCH libnftnl, v2] fix some error checking in parser functions

2016-06-22 Thread Pablo Neira Ayuso
On Wed, Jun 22, 2016 at 07:24:34PM +0200, Pablo Neira Ayuso wrote: > On Mon, Jun 20, 2016 at 12:29:19PM +0200, Carlos Falgueras García wrote: > > Use a variable 'ret' multiple times without treat the error between can > > overwrite the previous error value, and may execute code which should not. >

[PATCH libnftnl, v2] fix some error checking in parser functions

2016-06-20 Thread Carlos Falgueras García
Use a variable 'ret' multiple times without treat the error between can overwrite the previous error value, and may execute code which should not. Bad way: int f() { int ret; ret = g(); ret = h(); return ret; }