]> git.ipfire.org Git - thirdparty/nftables.git/commit
netlink: return error if chain not found
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 18 Apr 2013 14:33:18 +0000 (16:33 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 18 Apr 2013 14:39:27 +0000 (16:39 +0200)
commit40293af99eee781b3782cb6ff7cc49d648e68254
tree03d6e67a796b0553139c9f3937c5e0488e7dc0a9
parent05ce01fdaf7f657725ce1e5e886813d036b05f25
netlink: return error if chain not found

Before this patch:

nft list chain filter xxx
table filter {
}

After this patch:

nft list chain filter xxx
internal:0:0-0: Error: Could not find chain `xxx' in table `filter: Object not found

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/netlink.c