diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-10-16 20:56:57 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-10-17 11:23:29 +0200 |
commit | b274c169014e71715f9333ee028c5a9304881919 (patch) | |
tree | a7d165326f3b5738fbf5e9bf50eda71fbf9e3341 /src/xt.c | |
parent | 3bc84e5c1fdd1ff011af9788fe174e0514c2c9ea (diff) |
src: remove opts field from struct xt_stmt
This is never used, ie. always NULL.
Reported-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Acked-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'src/xt.c')
-rw-r--r-- | src/xt.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -32,9 +32,7 @@ void xt_stmt_xlate(const struct stmt *stmt) switch (stmt->xt.type) { case NFT_XT_MATCH: - if (stmt->xt.match == NULL && stmt->xt.opts) { - printf("%s", stmt->xt.opts); - } else if (stmt->xt.match->xlate) { + if (stmt->xt.match->xlate) { struct xt_xlate_mt_params params = { .ip = stmt->xt.entry, .match = stmt->xt.match->m, @@ -51,9 +49,7 @@ void xt_stmt_xlate(const struct stmt *stmt) break; case NFT_XT_WATCHER: case NFT_XT_TARGET: - if (stmt->xt.target == NULL && stmt->xt.opts) { - printf("%s", stmt->xt.opts); - } else if (stmt->xt.target->xlate) { + if (stmt->xt.target->xlate) { struct xt_xlate_tg_params params = { .ip = stmt->xt.entry, .target = stmt->xt.target->t, |