]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: xt_quota: fix incomplete initialization
authorJan Engelhardt <jengelh@medozas.de>
Mon, 22 Jun 2009 12:16:45 +0000 (14:16 +0200)
committerPatrick McHardy <kaber@trash.net>
Mon, 22 Jun 2009 12:16:45 +0000 (14:16 +0200)
commit783ac77c1e1c11cd9856b8e5497a1c2fad29499d
treeeefff92d2a4c7fc6751485eacd21e620dd7ac925
parentb4d8ee658db54983cdee2955b2ac98db901d9459
netfilter: xt_quota: fix incomplete initialization

Commit v2.6.29-rc5-872-gacc738f ("xtables: avoid pointer to self")
forgot to copy the initial quota value supplied by iptables into the
private structure, thus counting from whatever was in the memory
kmalloc returned.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/netfilter/xt_quota.c