]> git.ipfire.org Git - thirdparty/nftables.git/commit
src: fix return code
authorArturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Fri, 11 Oct 2013 11:03:08 +0000 (13:03 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 17 Oct 2013 09:08:40 +0000 (11:08 +0200)
commit2855909e46f4646f137a96892bd5c465fa1193f8
tree8d43279f1d488f618b878befbef6821b7ce61d4a
parent8bd599c66b05c4b8bba2564b3f4cd77e719a660c
src: fix return code

Exit with NFT_EXIT_FAILURE if something went wrong in the netlink code.

Before this patch:

internal:0:0-0: Error: Could not find chain `asd' in table `filter': [...]

0

After this patch:

internal:0:0-0: Error: Could not find chain `asd' in table `filter': [...]

1

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/main.c