netfilter: xt_hashlimit: alloc hashtable with right size
authorZhizhou Tian <zhizhou.tian@gmail.com>
Fri, 8 Sep 2017 03:00:16 +0000 (11:00 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 8 Sep 2017 16:55:53 +0000 (18:55 +0200)
commit05d0eae7c1cf6bf7b19c02b3a97ff457b3317323
treef2768449f917a5de1dd858d1ea9fb26c51209bb2
parent74585d4f84379528347630253c42518c5002d2f9
netfilter: xt_hashlimit: alloc hashtable with right size

struct xt_byteslimit_htable used hlist_head, but memory allocation is
done through sizeof(struct list_head).

Signed-off-by: Zhizhou Tian <zhizhou.tian@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_hashlimit.c