diff options
author | Phil Sutter <phil@nwl.cc> | 2017-12-14 20:40:24 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-12-15 16:23:00 +0100 |
commit | 8bcf10b504c692deb3c98d395f42d34141f21e59 (patch) | |
tree | cd2b6c6dbd696ecb88805572e33f001d00d57000 /examples/nft-table-get.c | |
parent | dbaf6ea8f6a1a1e7f1d5abc2e4e2fef891c471b7 (diff) |
set_elem: Don't return garbage in nftnl_set_elems_parse()
This might happen if netlink message is malformed (no nested attributes
are present), so treat this as an error and return -1 instead of
garbage to caller.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'examples/nft-table-get.c')
0 files changed, 0 insertions, 0 deletions