Commit b0e256f
committed
netfilter: nft_set_pipapo: release elements in clone only from destroy path
Clone already always provides a current view of the lookup table, use it
to destroy the set, otherwise it is possible to destroy elements twice.
This fix requires:
212ed75 ("netfilter: nf_tables: integrate pipapo into commit protocol")
which came after:
9827a0e ("netfilter: nft_set_pipapo: release elements in clone from abort path").
Fixes: 9827a0e ("netfilter: nft_set_pipapo: release elements in clone from abort path")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>1 parent 9c6a595 commit b0e256f
1 file changed
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2329 | 2329 | | |
2330 | 2330 | | |
2331 | 2331 | | |
2332 | | - | |
2333 | | - | |
2334 | 2332 | | |
2335 | 2333 | | |
2336 | 2334 | | |
| |||
2342 | 2340 | | |
2343 | 2341 | | |
2344 | 2342 | | |
2345 | | - | |
2346 | | - | |
| 2343 | + | |
2347 | 2344 | | |
2348 | 2345 | | |
2349 | 2346 | | |
| |||
0 commit comments