diff options
author | Florian Westphal <fw@strlen.de> | 2019-01-16 13:54:13 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2019-01-18 23:01:20 +0100 |
commit | f30e5fe55f252558f6b78c436595051b0506b8c6 (patch) | |
tree | 0a4dd6fa91f4e5a549822e8342d9ade42ffb0f33 /src/cli.c | |
parent | ce2651222911f09ca838fbdd29b5b2e0ff5f262f (diff) |
mnl: name is ignored when deleting a table
nlt is reallocated, leaking first allocation and also removing
the table name/handle that was set on nlt object.
Add a test case for this as well, the batch is supposed to fail
when trying to delete a non-existant table, rather than wiping
all tables in the same address family.
Fixes: 12c362e2214a0 ("mnl: remove alloc_nftnl_table()")
Reported-by: Mikhail Morfikov <mmorfikov@gmail.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src/cli.c')
0 files changed, 0 insertions, 0 deletions