netfilter: nfnetlink_acct: avoid using NFACCT_F_OVERQUOTA with bit helper functions
authorAlexey Perevalov <a.perevalov@samsung.com>
Thu, 31 Jul 2014 13:14:05 +0000 (17:14 +0400)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 31 Jul 2014 17:55:47 +0000 (19:55 +0200)
Bit helper functions were used for manipulation with NFACCT_F_OVERQUOTA,
but they are accepting pit position, but not a bit mask. As a result
not a third bit for NFACCT_F_OVERQUOTA was set, but forth. Such
behaviour was dangarous and could lead to unexpected overquota report
result.

Signed-off-by: Alexey Perevalov <a.perevalov@samsung.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

No differences found