diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2009-06-22 14:16:45 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2009-06-22 14:16:45 +0200 |
commit | 6d62182fea6cc6bbc8d82a691ad0608d68a54aeb (patch) | |
tree | eefff92d2a4c7fc6751485eacd21e620dd7ac925 /net/netfilter | |
parent | 249556192859490b6280552d4b877064f9f5ee48 (diff) | |
download | kernel_samsung_tuna-6d62182fea6cc6bbc8d82a691ad0608d68a54aeb.zip kernel_samsung_tuna-6d62182fea6cc6bbc8d82a691ad0608d68a54aeb.tar.gz kernel_samsung_tuna-6d62182fea6cc6bbc8d82a691ad0608d68a54aeb.tar.bz2 |
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>
Diffstat (limited to 'net/netfilter')
-rw-r--r-- | net/netfilter/xt_quota.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netfilter/xt_quota.c b/net/netfilter/xt_quota.c index 01dd07b..98fc190 100644 --- a/net/netfilter/xt_quota.c +++ b/net/netfilter/xt_quota.c @@ -54,6 +54,7 @@ static bool quota_mt_check(const struct xt_mtchk_param *par) if (q->master == NULL) return -ENOMEM; + q->master->quota = q->quota; return true; } |