commit | 8010d7feb2f0367ae573ad601b2905e29db50cd3 | [log] [tgz] |
---|---|---|
author | Pablo Neira Ayuso <pablo@netfilter.org> | Sun Dec 11 20:09:23 2016 +0100 |
committer | Pablo Neira Ayuso <pablo@netfilter.org> | Wed Dec 14 23:38:51 2016 +0100 |
tree | 5a53a2cd004e8fa0acc36b5743c2ab19f105a344 | |
parent | a220871be66f99d8957c693cf22ec67ecbd9c23a [diff] |
netfilter: nft_quota: reset quota after dump Dumping of netlink attributes may fail due to insufficient room in the skbuff, so let's reset consumed quota if we succeed to put netlink attributes into the skbuff. Fixes: 43da04a593d8 ("netfilter: nf_tables: atomic dump and reset for stateful objects") Reported-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>