]> err.no Git - linux-2.6/commit
[NETFILTER]: hashlimit match: fix random initialization
authorPatrick McHardy <kaber@trash.net>
Fri, 9 Jun 2006 19:18:47 +0000 (12:18 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 18 Jun 2006 04:30:11 +0000 (21:30 -0700)
commitbf0857ea32addb6bc8b46383604b218b8ec09f19
tree84b92a237f4f5e538f401dcbcc2725c75cc06955
parent2b2283d0302d520f08ded41c2ca17886dfbb865a
[NETFILTER]: hashlimit match: fix random initialization

hashlimit does:

        if (!ht->rnd)
                get_random_bytes(&ht->rnd, 4);

ignoring that 0 is also a valid random number.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/ipt_hashlimit.c