diff options
author | Phil Sutter <phil@nwl.cc> | 2023-07-13 18:32:02 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2023-08-01 17:16:37 +0200 |
commit | 4d9453233538200e9663c6bd0c2df09e1671b5f4 (patch) | |
tree | 8411cf59886409a4e5d076ebb37c3b1accbb392e /iptables | |
parent | 3bbf5269f25d7bc8cb6ecf2c44e6358579acc459 (diff) |
iptables-restore: Drop dead code
Handle initialization is guarded by 'in_table' boolean, so there can't
be a handle already (because the branch which unsets 'in_table' also
frees the handle).
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables')
-rw-r--r-- | iptables/iptables-restore.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/iptables/iptables-restore.c b/iptables/iptables-restore.c index f11b2dc2..53029738 100644 --- a/iptables/iptables-restore.c +++ b/iptables/iptables-restore.c @@ -223,8 +223,6 @@ ip46tables_restore_main(const struct iptables_restore_cb *cb, } continue; } - if (handle) - cb->ops->free(handle); handle = create_handle(cb, table); if (noflush == 0) { |