diff options
author | Arturo Borrero <arturo.borrero.glez@gmail.com> | 2014-01-18 17:01:44 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-01-18 21:50:22 +0100 |
commit | 871c7fd0204325b947a5fde3ab8617ef89b9168f (patch) | |
tree | 22988ceef9730a8c41265e619335a7228457ec2c /tests/nft-expr_byteorder-test.c | |
parent | cd9a80990abb035fba5810bbeb0ecdff46425d2f (diff) |
utils: fix nft_str2verdict return value
Some verdicts have a negative value.
The caller of nft_str2verdict() checking if return was < 0 clash with
enum nft_verdict.
While at it, add error reporting of invalid verdicts.
Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/nft-expr_byteorder-test.c')
0 files changed, 0 insertions, 0 deletions