diff options
author | Jozsef Kadlecsik <kadlec@netfilter.org> | 2020-02-22 11:24:20 +0100 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@netfilter.org> | 2020-02-22 12:13:05 +0100 |
commit | c281026e0bde52d1de37c72c11ce9bc5538661a4 (patch) | |
tree | c05963c2ac4f4546d55e2f649fd45a268fd46d70 /tests/hash:net,net.t | |
parent | aa035df78aa6a2b14b4722a681d3c051bc9cf92e (diff) | |
download | ipset-c281026e0bde52d1de37c72c11ce9bc5538661a4.tar.gz |
netfilter: ipset: Fix forceadd evaluation path
When the forceadd option is enabled, the hash:* types should find and replace
the first entry in the bucket with the new one if there are no reuseable
(deleted or timed out) entries. However, the position index was just not set
to zero and remained the invalid -1 if there were no reuseable entries.
Reported-by: syzbot+6a86565c74ebe30aea18@syzkaller.appspotmail.com
Fixes: 23c42a403a9c ("netfilter: ipset: Introduction of new commands and protocol version 7")
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
Diffstat (limited to 'tests/hash:net,net.t')
0 files changed, 0 insertions, 0 deletions