Commit 81a54549 authored by Thomas Graf's avatar Thomas Graf Committed by Patrick McHardy

[NETFILTER]: Fix warning in CONNMARK

Signed-off-by: default avatarThomas Graf <tgraf@suug.ch>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
parent b2928fba
...@@ -60,7 +60,7 @@ target(struct sk_buff **pskb, ...@@ -60,7 +60,7 @@ target(struct sk_buff **pskb,
break; break;
case IPT_CONNMARK_RESTORE: case IPT_CONNMARK_RESTORE:
nfmark = (*pskb)->nfmark; nfmark = (*pskb)->nfmark;
diff = (ct->mark ^ nfmark & markinfo->mask); diff = (ct->mark ^ nfmark) & markinfo->mask;
if (diff != 0) { if (diff != 0) {
(*pskb)->nfmark = nfmark ^ diff; (*pskb)->nfmark = nfmark ^ diff;
(*pskb)->nfcache |= NFC_ALTERED; (*pskb)->nfcache |= NFC_ALTERED;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment