summaryrefslogtreecommitdiff
path: root/include/net/stp.h
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-12-28 01:24:43 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2018-12-29 02:45:18 +0100
commit4cd273bb91b3001f623f516ec726c49754571b1a (patch)
tree42873aa500164d5b8e21f048390cd5885476723d /include/net/stp.h
parentc78e7818f16f687389174c4569243abbec8dc68f (diff)
downloadlinux-4cd273bb91b3001f623f516ec726c49754571b1a.tar.gz
linux-4cd273bb91b3001f623f516ec726c49754571b1a.tar.bz2
linux-4cd273bb91b3001f623f516ec726c49754571b1a.zip
netfilter: nf_conncount: don't skip eviction when age is negative
age is signed integer, so result can be negative when the timestamps have a large delta. In this case we want to discard the entry. Instead of using age >= 2 || age < 0, just make it unsigned. Fixes: b36e4523d4d56 ("netfilter: nf_conncount: fix garbage collection confirm race") Reviewed-by: Shawn Bohrer <sbohrer@cloudflare.com> Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net/stp.h')
0 files changed, 0 insertions, 0 deletions