From 26a5c9a3aad1b58e655769335d9e8fa51207700e Mon Sep 17 00:00:00 2001 From: Tomofumi Hayashi Date: Mon, 16 Mar 2015 19:35:23 +0900 Subject: [PATCH] In case of remove filter, just remove one rule. --- miniupnpd/netfilter_nft/nftnlrdr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/miniupnpd/netfilter_nft/nftnlrdr.c b/miniupnpd/netfilter_nft/nftnlrdr.c index 0a5a023..6a19af0 100644 --- a/miniupnpd/netfilter_nft/nftnlrdr.c +++ b/miniupnpd/netfilter_nft/nftnlrdr.c @@ -155,6 +155,7 @@ delete_redirect_and_filter_rules(unsigned short eport, int proto) (p->type == RULE_NAT || p->type == RULE_SNAT)) { iaddr = p->iaddr; iport = p->iport; + r = rule_del_handle(p); /* Todo: send bulk request */ nft_send_request(r, NFT_MSG_DELRULE); @@ -171,6 +172,7 @@ delete_redirect_and_filter_rules(unsigned short eport, int proto) r = rule_del_handle(p); /* Todo: send bulk request */ nft_send_request(r, NFT_MSG_DELRULE); + break; } }