Re: [PATCH 2/2 v2,libnftnl] Check memory allocations in setters

2016-06-14 Thread Pablo Neira Ayuso
On Fri, Jun 10, 2016 at 02:22:46PM +0200, Carlos Falgueras García wrote: > When you set an object attribute the memory is copied, sometimes an > allocations is needed and it must be checked. Before this patch all setters > method return void, so this patch makes all setters return int instead void

[PATCH 2/2 v2,libnftnl] Check memory allocations in setters

2016-06-10 Thread Carlos Falgueras García
When you set an object attribute the memory is copied, sometimes an allocations is needed and it must be checked. Before this patch all setters method return void, so this patch makes all setters return int instead void to communicate the error to user. Summary: * All setters return int