summaryrefslogtreecommitdiff
path: root/net/l3mdev
diff options
context:
space:
mode:
authorLiping Zhang <liping.zhang@spreadtrum.com>2016-09-15 13:29:08 (GMT)
committerPablo Neira Ayuso <pablo@netfilter.org>2016-09-23 07:30:16 (GMT)
commit8dc3c2b86bb16e8f345b80a8af69696e9a7edb65 (patch)
tree7291fd6d6e0cac21b234a579e593e2059d83bd10 /net/l3mdev
parent2462f3f4a7e079192b78f36900c34f18dad824a7 (diff)
downloadlinux-8dc3c2b86bb16e8f345b80a8af69696e9a7edb65.tar.xz
netfilter: nf_tables: improve nft payload fast eval
There's an off-by-one issue in nft_payload_fast_eval, skb_tail_pointer and ptr + priv->len all point to the last valid address plus 1. So if they are equal, we can still fetch the valid data. It's unnecessary to fall back to nft_payload_eval. Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/l3mdev')
0 files changed, 0 insertions, 0 deletions