]> git.ipfire.org Git - thirdparty/nftables.git/commit
evaluate: Return ENOENT if rule index is too large
authorPhil Sutter <phil@nwl.cc>
Fri, 11 May 2018 10:33:46 +0000 (12:33 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 11 May 2018 11:21:28 +0000 (13:21 +0200)
commitac79bea034766adc19067c3307f2ad6bdae4c36f
treef47c877823b29c22436d24e9cdb201d7f0fd2586
parentd196dccf1853039656f15c8da94ad349a3b7d07c
evaluate: Return ENOENT if rule index is too large

Since EINVAL usually indicates errors from kernel, avoid using it here
too. Instead return ENOENT to indicate there's no entry to append or
prepend the rule to.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/evaluate.c