netfilter: ipset: Support the -exist flag with the destroy command
authorJozsef Kadlecsik <kadlec@netfilter.org>
Thu, 29 Oct 2020 15:39:47 +0000 (16:39 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 31 Oct 2020 10:54:26 +0000 (11:54 +0100)
commita304ea7daf542b1e4a136be80bc973fc713e6ca6
tree595df5259c3f6febb7ad16f8f0dd421588330dd6
parent6bbb9ad36c93d3a422de862b78bd5330b44b3fa4
netfilter: ipset: Support the -exist flag with the destroy command

The -exist flag was supported with the create, add and delete commands.
In order to gracefully handle the destroy command with nonexistent sets,
the -exist flag is added to destroy too.

Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/ipset/ip_set_core.c