fix mark clear when markmask is not set

This commit is contained in:
bol-van
2025-04-22 10:44:41 +03:00
parent 02896c5008
commit 8401255552
+1 -1
View File
@@ -432,7 +432,7 @@ static uint hook_ip(void *priv, struct sk_buff *skb, const struct nf_hook_state
if (GET_PARAM(data_xor,idx)) modify_skb_payload(skb,idx,bOutgoing);
}
// clear mask bits to avoid processing in post hook
skb->mark &= ~markmask;
skb->mark &= ~(markmask ? markmask : GET_PARAM(mark,idx));
}
}
return NF_ACCEPT;