Gustavo A. R. Silva
eabb478219
netfilter: xt_hashlimit: use struct_size() helper
...
Make use of the struct_size() helper instead of an open-coded version
in order to avoid any potential type mistakes, in particular in the
context in which this code is being used.
So, replace code of the following form:
sizeof(struct xt_hashlimit_htable) + sizeof(struct hlist_head) * size
with:
struct_size(hinfo, hash, size)
This code was detected with the help of Coccinelle.
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com >
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org >
2019-05-06 01:03:04 +02:00
..
2019-04-23 19:09:58 +02:00
2019-03-13 11:50:04 +01:00
2019-04-27 17:07:21 -04:00
2019-04-19 14:07:40 -07:00
2019-04-19 14:07:40 -07:00
2019-04-21 10:37:26 -07:00
2019-04-27 17:07:22 -04:00
2019-04-25 06:18:07 -07:00
2019-04-27 09:07:04 -07:00
2019-02-23 13:34:40 -08:00
2019-04-27 17:07:21 -04:00
2019-04-10 12:20:46 -07:00
2019-04-27 17:07:21 -04:00
2019-03-25 22:28:07 +01:00
2019-04-28 08:42:41 -04:00
2019-04-27 17:07:21 -04:00
2019-04-19 14:07:40 -07:00
2019-04-27 17:07:21 -04:00
2019-04-11 14:01:08 -07:00
2019-04-28 19:41:01 -04:00
2019-04-23 18:36:34 +02:00
2019-04-27 17:07:22 -04:00
2019-04-27 17:07:22 -04:00
2019-04-30 14:19:54 +02:00
2019-04-27 17:07:22 -04:00
2018-11-10 16:55:11 -08:00
2019-04-01 14:59:20 -07:00
2019-02-12 10:36:42 +01:00
2019-04-27 17:07:22 -04:00
2018-12-03 14:15:26 -08:00
2019-04-12 10:25:03 -07:00
2019-04-26 16:05:52 -04:00
2018-09-28 12:46:07 +08:00
2019-04-27 17:07:21 -04:00
2019-04-27 17:07:22 -04:00
2019-05-06 01:03:04 +02:00
2019-04-27 17:07:22 -04:00
2019-04-27 17:07:22 -04:00
2019-04-19 14:07:40 -07:00
2019-04-27 17:07:22 -04:00
2018-07-12 16:55:29 -07:00
2019-04-30 14:19:56 +02:00
2019-04-27 17:03:44 -04:00
2019-04-27 17:07:21 -04:00
2019-04-27 17:07:22 -04:00
2019-04-27 17:07:21 -04:00
2019-04-24 12:07:08 -07:00
2018-12-18 13:13:56 +01:00
2019-04-25 23:52:29 -04:00
2019-04-25 23:52:29 -04:00
2019-04-27 17:07:21 -04:00
2019-04-19 14:07:40 -07:00
2019-04-27 17:07:22 -04:00
2019-04-22 21:50:54 -07:00
2019-04-23 13:40:55 -07:00
2019-03-01 21:35:19 -08:00
2019-04-27 17:07:22 -04:00
2019-04-27 16:52:21 -04:00
2019-04-08 09:51:54 -07:00
2019-03-08 15:15:44 -08:00
2019-04-27 17:07:22 -04:00
2019-04-27 17:07:22 -04:00
2019-04-19 14:07:40 -07:00
2019-04-16 20:13:10 -07:00
2019-04-27 17:07:21 -04:00
2019-04-19 14:07:40 -07:00
2019-03-24 14:55:31 -04:00
2019-02-28 08:24:23 -07:00
2019-04-26 11:28:47 -04:00