Commit 24c509b
netfilter: ipset: remove useless memset() calls
One of the memset call is buggy: it does not erase full array, but only pointer size.
Moreover, after a check, first step of nla_parse_nested/nla_parse is to
erase tb array as well. We can remove both calls safely.
Signed-off-by: Florent Fourcot <florent.fourcot@wifirst.fr>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>1 parent 16e6427 commit 24c509b
1 file changed
+0
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1599 | 1599 | | |
1600 | 1600 | | |
1601 | 1601 | | |
1602 | | - | |
1603 | 1602 | | |
1604 | 1603 | | |
1605 | 1604 | | |
| |||
1651 | 1650 | | |
1652 | 1651 | | |
1653 | 1652 | | |
1654 | | - | |
1655 | 1653 | | |
1656 | 1654 | | |
1657 | 1655 | | |
| |||
0 commit comments