aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2007-01-30 14:24:29 -0800
committerDavid S. Miller <davem@davemloft.net>2007-01-30 14:24:29 -0800
commitfb74a8416022c033e1a950689c264c453f8f98d8 (patch)
tree24ec91647e5a1356afda6d85a13be8bff1b74912 /net/ipv4
parent[MAINTAINERS]: netfilter@ is subscribers-only (diff)
downloadlinux-dev-fb74a8416022c033e1a950689c264c453f8f98d8.tar.xz
linux-dev-fb74a8416022c033e1a950689c264c453f8f98d8.zip
[NETFILTER]: xt_connbytes: fix division by zero
When the packet counter of a connection is zero a division by zero occurs in div64_64(). Fix that by using zero as average value, which is correct as long as the packet counter didn't overflow, at which point we have lost anyway. Additionally we're probably going to go back to 64 bit counters in 2.6.21. Based on patch from Jonas Berlin <xkr47@outerspace.dyndns.org>, with suggestions from KOVACS Krisztian <hidden@balabit.hu>. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions