Skip to content
Commit 35c038b0 authored by Florian Westphal's avatar Florian Westphal
Browse files

netfilter: nf_nat: mask out non-verdict bits when checking return value



Same as previous change: we need to mask out the non-verdict bits, as
upcoming patches may embed an errno value in NF_STOLEN verdicts too.

NF_DROP could already do this, but not all called functions do this.

Checks that only test ret vs NF_ACCEPT are fine, the 'errno parts'
are always 0 for those.

Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
parent 6291b3a6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment