MT#57371 fix rule deletion

We need to reset the condition flag for each rule, otherwise we may end
up deleting everything

Change-Id: Ic7f827149d18cce9e7b5d8ae5f0145bd52bee12d
mr12.0
Richard Fuchs 2 years ago
parent e80445c556
commit bcc25953f6

@ -124,6 +124,8 @@ static int nftables_do_rule(const struct nlmsghdr *nlh, void *data) {
if (nftnl_rule_nlmsg_parse(nlh, r) < 0)
return MNL_CB_OK;
memset(&callbacks->rule_scratch, 0, sizeof(callbacks->rule_scratch));
if (nftnl_expr_foreach(r, callbacks->parse_expr, callbacks) < 0)
return MNL_CB_OK;

Loading…
Cancel
Save