diff options
author | Phil Sutter <phil@nwl.cc> | 2018-08-02 17:05:08 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-08-04 14:07:23 +0200 |
commit | c2594475dd270e3a81033fed2e5251dbd5ce319b (patch) | |
tree | 18c6c9125396e8718199273a3cde7dd1928c292f /extensions/libebt_nflog.c | |
parent | ed30b9311d2bf3758463a353bf8a9dbb42a4e1cb (diff) |
xtables: Allocate rule cache just once
For each parsed table, xtables-restore calls nft_table_flush() which
each time allocates a new rule cache, possibly overwriting the pointer
to the previously allocated one. Fix this by checking the pointer value
and only allocate if it's NULL.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'extensions/libebt_nflog.c')
0 files changed, 0 insertions, 0 deletions