diff --git a/miniupnpd/netfilter_nft/nftnlrdr.c b/miniupnpd/netfilter_nft/nftnlrdr.c index 6a19af0..0faf4d9 100644 --- a/miniupnpd/netfilter_nft/nftnlrdr.c +++ b/miniupnpd/netfilter_nft/nftnlrdr.c @@ -159,6 +159,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; } } diff --git a/miniupnpd/netfilter_nft/nftnlrdr_misc.c b/miniupnpd/netfilter_nft/nftnlrdr_misc.c index b83f0a0..279b43b 100644 --- a/miniupnpd/netfilter_nft/nftnlrdr_misc.c +++ b/miniupnpd/netfilter_nft/nftnlrdr_misc.c @@ -1034,7 +1034,7 @@ rule_del_handle(rule_t *rule) nft_rule_attr_set(r, NFT_RULE_ATTR_TABLE, rule->table); nft_rule_attr_set(r, NFT_RULE_ATTR_CHAIN, rule->chain); nft_rule_attr_set_u32(r, NFT_RULE_ATTR_FAMILY, rule->family); - nft_rule_attr_set_u64(r, NFT_RULE_ATTR_POSITION, rule->handle); + nft_rule_attr_set_u64(r, NFT_RULE_ATTR_HANDLE, rule->handle); return r; }