diff options
author | Eric Leblond <eric@regit.org> | 2013-10-03 01:08:06 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-10-03 12:39:35 +0200 |
commit | aa6a7380410670567253ef3b71e90caeff442651 (patch) | |
tree | 4278526b09ac35bbac29c8db5e7ef8ce7d01da41 | |
parent | 21b2c6c41e9660fc1c4f3fcc8c186b63c988b8ba (diff) |
netlink: suppress useless variable
Signed-off-by: Eric Leblond <eric@regit.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | src/netlink.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/netlink.c b/src/netlink.c index b1e44ad0..6f3002bc 100644 --- a/src/netlink.c +++ b/src/netlink.c @@ -441,7 +441,6 @@ static int netlink_flush_rules(struct netlink_ctx *ctx, const struct handle *h, const struct location *loc) { struct nft_rule_list *rule_cache; - struct nft_rule *nlr; rule_cache = mnl_nft_rule_dump(nf_sock, h->family); if (rule_cache == NULL) @@ -450,9 +449,7 @@ static int netlink_flush_rules(struct netlink_ctx *ctx, const struct handle *h, strerror(errno)); mnl_batch_begin(); - nlr = alloc_nft_rule(h); nft_rule_list_foreach(rule_cache, flush_rule_cb, ctx); - nft_rule_free(nlr); nft_rule_list_free(rule_cache); mnl_batch_end(); return 0; |